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