|
@ -214,6 +214,14 @@ namespace SqlSugar |
|
|
parameter.CommonTempData = CommonTempDataType.Result; |
|
|
parameter.CommonTempData = CommonTempDataType.Result; |
|
|
this.Expression = expression.Expression; |
|
|
this.Expression = expression.Expression; |
|
|
var isConst = this.Expression is ConstantExpression; |
|
|
var isConst = this.Expression is ConstantExpression; |
|
|
|
|
|
if (this.Expression.Type == UtilConstants.DateType && this.Expression.ToString() == "DateTime.Now") |
|
|
|
|
|
{ |
|
|
|
|
|
this.Expression = expression; |
|
|
|
|
|
var parameterName=base.AppendParameter(ExpressionTool.GetMemberValue(expression.Member, expression)); |
|
|
|
|
|
base.AppendMember(parameter, isLeft, parameterName); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
this.Start(); |
|
|
this.Start(); |
|
|
var result = this.Context.DbMehtods.DateValue(new MethodCallExpressionModel() |
|
|
var result = this.Context.DbMehtods.DateValue(new MethodCallExpressionModel() |
|
|
{ |
|
|
{ |
|
@ -223,6 +231,7 @@ namespace SqlSugar |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
base.AppendMember(parameter, isLeft, result); |
|
|
base.AppendMember(parameter, isLeft, result); |
|
|
|
|
|
} |
|
|
parameter.CommonTempData = oldCommonTempDate; |
|
|
parameter.CommonTempData = oldCommonTempDate; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|