mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
-
This commit is contained in:
@@ -415,20 +415,20 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var fieldName = property.Name;
|
var propertyName = property.Name;
|
||||||
var mappingInfo = this.Context.MappingColumns.FirstOrDefault(it => it.EntityName == item.Type.Name && it.PropertyName.Equals(fieldName, StringComparison.CurrentCultureIgnoreCase));
|
var dbColumnName = propertyName;
|
||||||
|
var mappingInfo = this.Context.MappingColumns.FirstOrDefault(it => it.EntityName == item.Type.Name && it.PropertyName.Equals(propertyName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
if (mappingInfo.HasValue()) {
|
if (mappingInfo.HasValue()) {
|
||||||
fieldName = mappingInfo.DbColumnName;
|
dbColumnName = mappingInfo.DbColumnName;
|
||||||
}
|
}
|
||||||
asName = this.Context.GetTranslationText(item.Type.Name + "." + fieldName);
|
asName = this.Context.GetTranslationText(item.Type.Name + "." + propertyName);
|
||||||
var columnName = property.Name;
|
|
||||||
if (Context.IsJoin)
|
if (Context.IsJoin)
|
||||||
{
|
{
|
||||||
this.Context.Result.Append(Context.GetAsString(asName, columnName, shortName.ObjToString()));
|
this.Context.Result.Append(Context.GetAsString(asName, dbColumnName, shortName.ObjToString()));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.Context.Result.Append(Context.GetAsString(asName, columnName));
|
this.Context.Result.Append(Context.GetAsString(asName, dbColumnName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user