mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update crosss database join
This commit is contained in:
parent
62be4004d0
commit
144a5fae00
@ -1093,6 +1093,10 @@ namespace SqlSugar
|
||||
EntityType= lastPareamter.Type,
|
||||
TableName = this.Context.EntityMaintenance.GetTableName(lastPareamter.Type)
|
||||
};
|
||||
if (QueryBuilder.IsCrossQueryWithAttr)
|
||||
{
|
||||
result.TableName=GetTableName(this.Context.EntityMaintenance.GetEntityInfo(lastPareamter.Type), result.TableName);
|
||||
}
|
||||
if (this.Context.CurrentConnectionConfig?.MoreSettings?.PgSqlIsAutoToLower == false)
|
||||
{
|
||||
result.ShortName = this.SqlBuilder.GetTranslationColumnName(result.ShortName);
|
||||
|
@ -1169,7 +1169,10 @@ namespace SqlSugar
|
||||
QueryBuilder.SelectValue = selectValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
public virtual ISugarQueryable<TResult> SelectMergeTable<TResult>(Expression<Func<T, TResult>> expression)
|
||||
{
|
||||
return this.Select(expression).MergeTable();
|
||||
}
|
||||
public virtual ISugarQueryable<T> MergeTable()
|
||||
{
|
||||
if (IsSubToList())
|
||||
|
@ -134,6 +134,7 @@ namespace SqlSugar
|
||||
ISugarQueryable<TResult> Select<TResult>();
|
||||
ISugarQueryable<TResult> Select<TResult>(string select);
|
||||
ISugarQueryable<T> Select(string select);
|
||||
ISugarQueryable<TResult> SelectMergeTable<TResult>(Expression<Func<T, TResult>> expression);
|
||||
ISugarQueryable<T> MergeTable();
|
||||
void ForEach(Action<T> action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null);
|
||||
Task ForEachAsync(Action<T> action, int singleMaxReads = 300, System.Threading.CancellationTokenSource cancellationTokenSource = null);
|
||||
|
Loading…
Reference in New Issue
Block a user