|
|
@ -43,7 +43,11 @@ namespace SqlSugar |
|
|
|
public string GetValue(Expression expression = null) |
|
|
|
{ |
|
|
|
var exp = expression as MethodCallExpression; |
|
|
|
return "MIN(" + SubTools.GetMethodValue(this.Context, exp.Arguments[0], ResolveExpressType.FieldSingle) + ")"; |
|
|
|
var argExp = exp.Arguments[0]; |
|
|
|
var result = "MIN(" + SubTools.GetMethodValue(Context, argExp, ResolveExpressType.WhereMultiple) + ")"; |
|
|
|
var selfParameterName = Context.GetTranslationColumnName((argExp as LambdaExpression).Parameters.First().Name) + UtilConstants.Dot; |
|
|
|
result = result.Replace(selfParameterName, string.Empty); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|