mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update exp to sql
This commit is contained in:
@@ -61,6 +61,10 @@ namespace SqlSugar
|
||||
isIsNegate = true;
|
||||
exp = (exp as UnaryExpression).Operand;
|
||||
}
|
||||
if (methodExp.Method.Name.IsIn("Return", "End")&& exp .Type==UtilConstants.BoolType&& ExpressionTool.IsEqualOrLtOrGt(exp))
|
||||
{
|
||||
exp=ExpressionTool.GetConditionalExpression(exp);
|
||||
}
|
||||
var sql = SubTools.GetMethodValue(this.context, exp, this.context.IsSingle ? ResolveExpressType.WhereSingle : ResolveExpressType.WhereMultiple);
|
||||
if (methodExp.Method.Name == "IF")
|
||||
{
|
||||
|
Reference in New Issue
Block a user