diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs index 23423fa5f..dc315afc6 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve_Helper.cs @@ -663,7 +663,7 @@ namespace SqlSugar case "SelectAll": case "GetSelfAndAutoFill": this.Context.Parameters.RemoveAll(it => it.ParameterName == model.Args[0].MemberName.ObjToString()); - var result1 = this.Context.DbMehtods.GetSelfAndAutoFill(model.Args[0].MemberValue.ObjToString(), this.Context.IsSingle); + var result1 = this.Context.DbMehtods.GetSelfAndAutoFill(this.Context.GetTranslationColumnName(model.Args[0].MemberValue.ObjToString()), this.Context.IsSingle); if ((model.Args[0].MemberValue + "") == "." && this.Context.IsSingle) { result1 = this.Context.GetTranslationTableName(model.Args[0].MemberName + "", false) + ".*/**/" + result1; diff --git a/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs b/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs index 5f3edc5c3..5598162e1 100644 --- a/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs +++ b/Src/Asp.Net/SqlSugar/Infrastructure/Mapper.cs @@ -57,16 +57,10 @@ namespace SqlSugar AsName=viewColumns.PropertyName, DbName=columnInfo.it.DbColumnName }; - 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)); - } + //var isNoPgAuto = queryBuilder.Context.CurrentConnectionConfig.MoreSettings?.PgSqlIsAutoToLower == false; + //var isNoUpper = this._context.CurrentConnectionConfig?.MoreSettings?.IsAutoToUpper == false; + var shortName = queryBuilder.Builder.GetTranslationColumnName(expPars.shortName); + selectItems.Add(new KeyValuePair(shortName, joinMapper)); isbreak = true; } }