From f2d43011dacaf2262cd191a1a5e1e3d8fcd15b2d Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Sun, 19 Dec 2021 15:18:24 +0800 Subject: [PATCH] Update SqlBuilderProvider --- .../SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs index b82d63eb8..3c71ff0fb 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs @@ -152,6 +152,7 @@ namespace SqlSugar { parameterName = parameterName.Replace(this.SqlTranslationLeft, "_"); } + string oldName = item.FieldName; item.FieldName = GetTranslationColumnName(item.FieldName); switch (item.ConditionalType) { @@ -249,6 +250,7 @@ namespace SqlSugar default: break; } + item.FieldName = oldName; } else {