From 10905e4494adcd8c8da065e675f60cea02e10c2f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 28 May 2023 19:30:23 +0800 Subject: [PATCH] Update exp to sql (Any) --- .../ExpressionsToSql/ResolveItems/BaseResolve_Item.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs index cc78b4796..efae215ed 100644 --- a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs +++ b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs @@ -48,7 +48,14 @@ namespace SqlSugar private void ResloveBoolMethod(ExpressionParameter parameter, Expression item, string asName) { this.Expression = item; - this.Start(); + if (ExpressionTool.GetMethodName(item) == "Any") + { + parameter.CommonTempData = GetNewExpressionValue(item); + } + else + { + this.Start(); + } var sql = this.Context.DbMehtods.IIF(new MethodCallExpressionModel() { Args = new List() {