From 4bd6218ac13ca1138a81c7d8576a50bcd09d8303 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 27 Jul 2024 19:59:54 +0800 Subject: [PATCH] Update exp to sql --- .../ResolveItems/MethodCallExpressionResolve_Helper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs index 45fee783a..364f073d5 100644 --- a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs +++ b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs @@ -662,6 +662,10 @@ namespace SqlSugar { name = "IsNullOrEmpty"; } + if (model.Conext == null) + { + model.Conext = this.Context; + } switch (name) { case "IIF":