From 5aa5a1d6602ca08d3531c438bdf996ad2860af3d Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 5 Apr 2023 16:38:11 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs index d3f83bb2c..c2b3e3170 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs @@ -1067,7 +1067,7 @@ namespace SqlSugar } foreach (var item in columns) { - if (item.IsIgnore == false && columnsResult.Any(it => it.PropertyName.EqualCase(item.PropertyName)) && !sql.ToLower().Contains(SqlBuilder.GetTranslationColumnName(item.PropertyName.ToLower()))) + if (item.IsIgnore == false && columnsResult.Any(it => it.PropertyName.EqualCase(item.PropertyName)) && !sql.ToLower().Contains(SqlBuilder.GetTranslationColumnName(item.PropertyName).ToLower())) { sql = $" {sql},{parameterName}.{SqlBuilder.GetTranslationColumnName(item.DbColumnName)} AS {SqlBuilder.GetTranslationColumnName(item.PropertyName)} "; } @@ -1350,9 +1350,9 @@ namespace SqlSugar result = GetData(sqlObj); } RestoreMapping(); - _Mapper(result); _InitNavigat(result); _SubQuery(result); + _Mapper(result); return result; } @@ -1372,9 +1372,9 @@ namespace SqlSugar result = await GetDataAsync(sqlObj); } RestoreMapping(); - _Mapper(result); await _InitNavigatAsync(result); await _SubQueryAsync(result); + _Mapper(result); return result; } private void ToSqlBefore()