Browse Source

Synchronization code

pull/32/head
sunkaixuan 2 years ago
parent
commit
5aa5a1d660
  1. 6
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

6
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

@ -1067,7 +1067,7 @@ namespace SqlSugar
}
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)} ";
}
@ -1350,9 +1350,9 @@ namespace SqlSugar
result = GetData<TResult>(sqlObj);
}
RestoreMapping();
_Mapper(result);
_InitNavigat(result);
_SubQuery(result);
_Mapper(result);
return result;
}
@ -1372,9 +1372,9 @@ namespace SqlSugar
result = await GetDataAsync<TResult>(sqlObj);
}
RestoreMapping();
_Mapper(result);
await _InitNavigatAsync(result);
await _SubQueryAsync(result);
_Mapper(result);
return result;
}
private void ToSqlBefore()

Loading…
Cancel
Save