From 87266dff1662138eb03ed66fb7e38ed3e817b8cb Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 25 Aug 2022 13:09:16 +0800 Subject: [PATCH] Update db.DeleteNav --- .../SqlSugar/Abstract/ExecuteNavProvider/DeleteNavProvider.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavProvider.cs index ac88473fc..46c23c65c 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/DeleteNavProvider.cs @@ -100,12 +100,14 @@ namespace SqlSugar } else if (method.Method.Name == "Where") { + this._Context.InitMappingInfo(); navigatManager.CheckHasRootShortName(method.Arguments[0], method.Arguments[1]); var exp = method.Arguments[1]; _WhereList.Add(" " + queryBuilder.GetExpressionValue(exp, ResolveExpressType.WhereSingle).GetString()); } else if (method.Method.Name == "WhereIF") { + this._Context.InitMappingInfo(); var isOk = LambdaExpression.Lambda(method.Arguments[1]).Compile().DynamicInvoke(); if (isOk.ObjToBool()) {