mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronization code
This commit is contained in:
parent
0ab04b527b
commit
5aa5a1d660
@ -1067,7 +1067,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
foreach (var item in columns)
|
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)} ";
|
sql = $" {sql},{parameterName}.{SqlBuilder.GetTranslationColumnName(item.DbColumnName)} AS {SqlBuilder.GetTranslationColumnName(item.PropertyName)} ";
|
||||||
}
|
}
|
||||||
@ -1350,9 +1350,9 @@ namespace SqlSugar
|
|||||||
result = GetData<TResult>(sqlObj);
|
result = GetData<TResult>(sqlObj);
|
||||||
}
|
}
|
||||||
RestoreMapping();
|
RestoreMapping();
|
||||||
_Mapper(result);
|
|
||||||
_InitNavigat(result);
|
_InitNavigat(result);
|
||||||
_SubQuery(result);
|
_SubQuery(result);
|
||||||
|
_Mapper(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1372,9 +1372,9 @@ namespace SqlSugar
|
|||||||
result = await GetDataAsync<TResult>(sqlObj);
|
result = await GetDataAsync<TResult>(sqlObj);
|
||||||
}
|
}
|
||||||
RestoreMapping();
|
RestoreMapping();
|
||||||
_Mapper(result);
|
|
||||||
await _InitNavigatAsync(result);
|
await _InitNavigatAsync(result);
|
||||||
await _SubQueryAsync(result);
|
await _SubQueryAsync(result);
|
||||||
|
_Mapper(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
private void ToSqlBefore()
|
private void ToSqlBefore()
|
||||||
|
Loading…
Reference in New Issue
Block a user