|
@ -59,11 +59,16 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
var member = memberExpression.Expression as MemberExpression; |
|
|
var member = memberExpression.Expression as MemberExpression; |
|
|
parameter.CommonTempData = CommonTempDataType.Result; |
|
|
parameter.CommonTempData = CommonTempDataType.Result; |
|
|
this.Expression = member; |
|
|
var isConst = member.Expression != null && member.Expression is ConstantExpression; |
|
|
|
|
|
this.Expression = isConst?member.Expression:member; |
|
|
this.Start(); |
|
|
this.Start(); |
|
|
var result= this.Context.DbMehtods.HasValue(new MethodCallExpressionModel() { Args=new List<MethodCallExpressionArgs>() { |
|
|
var methodParamter = isConst ? new MethodCallExpressionArgs() { IsMember=false } : new MethodCallExpressionArgs() { IsMember = true, MemberName = parameter.CommonTempData, MemberValue = null }; |
|
|
new MethodCallExpressionArgs() { IsMember=true, MemberName= parameter.CommonTempData , MemberValue=null } |
|
|
var result = this.Context.DbMehtods.HasValue(new MethodCallExpressionModel() |
|
|
} }); |
|
|
{ |
|
|
|
|
|
Args = new List<MethodCallExpressionArgs>() { |
|
|
|
|
|
methodParamter |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
this.Context.Result.Append(result); |
|
|
this.Context.Result.Append(result); |
|
|
parameter.CommonTempData = null; |
|
|
parameter.CommonTempData = null; |
|
|
} |
|
|
} |
|
|