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()) {