From 0925bc7d877da655e2edaf0f0ba6c1ca0ddd710c Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 12 Apr 2022 14:24:42 +0800 Subject: [PATCH] Update Mapping expression --- .../ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs index 9487fb7b9..9b0ec5fc1 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MapperExpressionResolve.cs @@ -17,6 +17,11 @@ namespace SqlSugar public MapperExpressionResolve(Expression expression, InvalidOperationException ex) { this.expression = expression; + OldNavgate(expression, ex); + } + + private void OldNavgate(Expression expression, InvalidOperationException ex) + { this.ex = ex; this.mappers = CallContext.MapperExpression.Value; Error01();