mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update exp to sql
This commit is contained in:
@@ -65,6 +65,10 @@ namespace SqlSugar
|
||||
{
|
||||
exp=ExpressionTool.GetConditionalExpression(exp);
|
||||
}
|
||||
else if (methodExp.Method.Name.IsIn("Return", "End") && exp.Type == UtilConstants.BoolType && ExpressionTool.GetMethodName(exp).IsIn("Contains", "StartsWith", "EndsWith"))
|
||||
{
|
||||
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