From 2efe10a9aed8f9e7d8178a7dbba6256900efe751 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 28 May 2023 19:32:34 +0800 Subject: [PATCH] Synchronization code --- .../ExpressionsToSql/ResolveItems/BaseResolve_Item.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs index cc78b4796..efae215ed 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs +++ b/Src/Asp.Net/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() {