This commit is contained in:
sunkaixuan 2017-09-17 01:22:06 +08:00
parent 86576373d5
commit e9f883fa1b
2 changed files with 3 additions and 1 deletions

View File

@ -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)
{

View File

@ -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();