diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs b/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs index 01f80f35c..5f3edc5c3 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs +++ b/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs @@ -57,7 +57,16 @@ namespace SqlSugar AsName=viewColumns.PropertyName, DbName=columnInfo.it.DbColumnName }; - selectItems.Add(new KeyValuePair(expPars.shortName,joinMapper)); + var isNoPgAuto = queryBuilder.Context.CurrentConnectionConfig.MoreSettings?.PgSqlIsAutoToLower == false; + if (isNoPgAuto) + { + var shortName=queryBuilder.Builder.GetTranslationColumnName(expPars.shortName); + selectItems.Add(new KeyValuePair(shortName, joinMapper)); + } + else + { + selectItems.Add(new KeyValuePair(expPars.shortName, joinMapper)); + } isbreak = true; } }