mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Optimized union all
This commit is contained in:
parent
78ac7237ff
commit
46ebc6b8a7
@ -616,7 +616,7 @@ namespace SqlSugar
|
||||
}
|
||||
#endregion
|
||||
|
||||
public virtual ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public virtual ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return _UnionAll(queryables);
|
||||
}
|
||||
@ -659,12 +659,12 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
|
||||
public virtual ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public virtual ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
Check.Exception(queryables.IsNullOrEmpty(), "UnionAll.queryables is null ");
|
||||
return UnionAll(queryables.ToArray());
|
||||
}
|
||||
public virtual ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public virtual ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
var sqlBuilder = InstanceFactory.GetSqlbuilder(this.Context.CurrentConnectionConfig);
|
||||
Check.Exception(queryables.IsNullOrEmpty(), "UnionAll.queryables is null ");
|
||||
@ -702,7 +702,7 @@ namespace SqlSugar
|
||||
return resulut.Select<T>(sqlBuilder.SqlSelectAll);
|
||||
}
|
||||
}
|
||||
public virtual ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public virtual ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
Check.Exception(queryables.IsNullOrEmpty(), "Union.queryables is null ");
|
||||
return Union(queryables.ToArray());
|
||||
|
@ -654,22 +654,22 @@ namespace SqlSugar
|
||||
return ScopedContext.StorageableByObject(singleEntityObjectOrListObject);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return ScopedContext.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return ScopedContext.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return ScopedContext.UnionAll(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return ScopedContext.UnionAll(queryables);
|
||||
}
|
||||
|
@ -190,10 +190,10 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Union
|
||||
ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new();
|
||||
ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new();
|
||||
ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new();
|
||||
ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new();
|
||||
ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class;
|
||||
ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class;
|
||||
ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class;
|
||||
ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class;
|
||||
#endregion
|
||||
|
||||
#region Updateable
|
||||
|
@ -267,22 +267,22 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Union
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return this.Context.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return this.Context.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return this.Context.UnionAll(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return this.Context.UnionAll(queryables);
|
||||
}
|
||||
|
@ -634,22 +634,22 @@ namespace SqlSugar
|
||||
return this.ScopedContext.StorageableByObject(singleEntityObjectOrListObject);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return ScopedContext.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return ScopedContext.Union(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class
|
||||
{
|
||||
return ScopedContext.UnionAll(queryables);
|
||||
}
|
||||
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
||||
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class
|
||||
{
|
||||
return ScopedContext.UnionAll(queryables);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user