Browse Source

Update exp to sql

pull/25/head
sunkaixuan 2 years ago
parent
commit
5694c96b19
  1. 11
      Src/Asp.NetCore2/SqlSugar/Infrastructure/Mapper.cs

11
Src/Asp.NetCore2/SqlSugar/Infrastructure/Mapper.cs

@ -57,7 +57,16 @@ namespace SqlSugar
AsName=viewColumns.PropertyName,
DbName=columnInfo.it.DbColumnName
};
selectItems.Add(new KeyValuePair<string, JoinMapper>(expPars.shortName,joinMapper));
var isNoPgAuto = queryBuilder.Context.CurrentConnectionConfig.MoreSettings?.PgSqlIsAutoToLower == false;
if (isNoPgAuto)
{
var shortName=queryBuilder.Builder.GetTranslationColumnName(expPars.shortName);
selectItems.Add(new KeyValuePair<string, JoinMapper>(shortName, joinMapper));
}
else
{
selectItems.Add(new KeyValuePair<string, JoinMapper>(expPars.shortName, joinMapper));
}
isbreak = true;
}
}

Loading…
Cancel
Save