Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
e9f883fa1b
  1. 2
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs
  2. 2
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs

2
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -457,7 +457,7 @@ namespace SqlSugar
private bool IsSubMethod(MethodCallExpression express, string methodName)
{
return SubTools.SubItems(this.Context).Any(it => it.Name == methodName) && express.Object != null && express.Object.Type.Name == "Subqueryable`1";
return SubTools.SubItemsConst.Any(it => it.Name == methodName) && express.Object != null && express.Object.Type.Name == "Subqueryable`1";
}
private void CheckMethod(MethodCallExpression expression)
{

2
Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs

@ -23,6 +23,8 @@ namespace SqlSugar
};
}
public static List<ISubOperation> SubItemsConst = SubItems(null);
public static string GetMethodValue(ExpressionContext context, Expression item, ResolveExpressType type)
{
var newContext = context.GetCopyContext();

Loading…
Cancel
Save