mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 21:58:02 +08:00
519 lines
20 KiB
C#
519 lines
20 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Dynamic;
|
|
using System.Linq;
|
|
using System.Linq.Expressions;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public class SqlSugarClient : ISqlSugarClient
|
|
{
|
|
private ISqlSugarClient _Context = null;
|
|
public ISqlSugarClient Context { get => _Context; set => _Context = value; }
|
|
|
|
public SqlSugarClient(ConnectionConfig config)
|
|
{
|
|
_Context = new SqlSugarContext(config);
|
|
}
|
|
//public SqlSugarClient(List<ConnectionConfig> config)
|
|
//{
|
|
|
|
//}
|
|
|
|
|
|
public IAdo Ado => Context.Ado;
|
|
|
|
public AopProvider Aop => Context.Aop;
|
|
|
|
public ICodeFirst CodeFirst => Context.CodeFirst;
|
|
|
|
public Guid ContextID { get => this.Context.ContextID; set => this.Context.ContextID = value; }
|
|
public ConnectionConfig CurrentConnectionConfig { get => this.Context.CurrentConnectionConfig; set => this.Context.CurrentConnectionConfig=value; }
|
|
|
|
public IDbFirst DbFirst => this.Context.DbFirst;
|
|
|
|
public IDbMaintenance DbMaintenance =>this.Context.DbMaintenance;
|
|
|
|
public EntityMaintenance EntityMaintenance { get =>this.EntityMaintenance; set =>this.EntityMaintenance=value; }
|
|
[Obsolete]
|
|
public EntityMaintenance EntityProvider { get =>this.EntityProvider ; set =>this.EntityProvider=value; }
|
|
|
|
public bool IsSystemTablesConfig => this.Context.IsSystemTablesConfig;
|
|
|
|
public QueryFilterProvider QueryFilter { get => this.Context.QueryFilter; set => this.Context.QueryFilter = value; }
|
|
[Obsolete]
|
|
public IContextMethods RewritableMethods { get => this.Context.RewritableMethods; set =>this.Context.RewritableMethods=value; }
|
|
[Obsolete]
|
|
public SimpleClient SimpleClient => this.Context.SimpleClient;
|
|
|
|
public Dictionary<string, object> TempItems { get => this.Context.TempItems; set =>this.Context.TempItems=value; }
|
|
public IContextMethods Utilities { get => this.Context.Utilities; set => this.Context.Utilities = value; }
|
|
|
|
public void AddQueue(string sql, object parsmeters = null)
|
|
{
|
|
this.Context.AddQueue(sql, parsmeters);
|
|
}
|
|
|
|
public void AddQueue(string sql, List<SugarParameter> parsmeters)
|
|
{
|
|
this.Context.AddQueue(sql, parsmeters);
|
|
}
|
|
|
|
public void AddQueue(string sql, SugarParameter parsmeter)
|
|
{
|
|
this.Context.AddQueue(sql, parsmeter);
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
this.Context.Close();
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>() where T : class, new()
|
|
{
|
|
return this.Context.Deleteable<T>();
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(dynamic primaryKeyValue) where T : class, new()
|
|
{
|
|
return this.Deleteable<T>(primaryKeyValue);
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(dynamic[] primaryKeyValues) where T : class, new()
|
|
{
|
|
return this.Context.Deleteable<T>(primaryKeyValues);
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(Expression<Func<T, bool>> expression) where T : class, new()
|
|
{
|
|
return this.Context.Deleteable(expression);
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(List<dynamic> pkValue) where T : class, new()
|
|
{
|
|
return this.Context.Deleteable<T>(pkValue);
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(List<T> deleteObjs) where T : class, new()
|
|
{
|
|
return this.Context.Deleteable<T>(deleteObjs);
|
|
}
|
|
|
|
public IDeleteable<T> Deleteable<T>(T deleteObj) where T : class, new()
|
|
{
|
|
return this.Context.Deleteable<T>(deleteObj);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
this.Context.Dispose();
|
|
}
|
|
|
|
public DateTime GetDate()
|
|
{
|
|
return this.Context.GetDate();
|
|
}
|
|
|
|
public SimpleClient GetSimpleClient()
|
|
{
|
|
return this.Context.GetSimpleClient();
|
|
}
|
|
|
|
public SimpleClient<T> GetSimpleClient<T>() where T : class, new()
|
|
{
|
|
return this.Context.GetSimpleClient<T>();
|
|
}
|
|
|
|
public void InitMppingInfo(Type type)
|
|
{
|
|
this.Context.InitMppingInfo(type);
|
|
}
|
|
|
|
public IInsertable<T> Insertable<T>(Dictionary<string, object> columnDictionary) where T : class, new()
|
|
{
|
|
return this.Context.Insertable<T>(columnDictionary);
|
|
}
|
|
|
|
public IInsertable<T> Insertable<T>(dynamic insertDynamicObject) where T : class, new()
|
|
{
|
|
return this.Context.Insertable<T>(insertDynamicObject);
|
|
}
|
|
|
|
public IInsertable<T> Insertable<T>(List<T> insertObjs) where T : class, new()
|
|
{
|
|
return this.Insertable<T>(insertObjs);
|
|
}
|
|
|
|
public IInsertable<T> Insertable<T>(T insertObj) where T : class, new()
|
|
{
|
|
return this.Insertable<T>(insertObj);
|
|
}
|
|
|
|
public IInsertable<T> Insertable<T>(T[] insertObjs) where T : class, new()
|
|
{
|
|
return this.Context.Insertable<T>(insertObjs);
|
|
}
|
|
|
|
public void Open()
|
|
{
|
|
this.Context.Open();
|
|
}
|
|
|
|
public ISugarQueryable<ExpandoObject> Queryable(string tableName, string shortName)
|
|
{
|
|
return this.Context.Queryable(tableName, shortName);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, T10, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8, T9> Queryable<T, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, T9, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8> Queryable<T, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8> Queryable<T, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7, T8> Queryable<T, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<T, T2, T3, T4, T5, T6, T7, T8, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7> Queryable<T, T2, T3, T4, T5, T6, T7>(Expression<Func<T, T2, T3, T4, T5, T6, T7, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7> Queryable<T, T2, T3, T4, T5, T6, T7>(Expression<Func<T, T2, T3, T4, T5, T6, T7, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6, T7> Queryable<T, T2, T3, T4, T5, T6, T7>(Expression<Func<T, T2, T3, T4, T5, T6, T7, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6> Queryable<T, T2, T3, T4, T5, T6>(Expression<Func<T, T2, T3, T4, T5, T6, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6> Queryable<T, T2, T3, T4, T5, T6>(Expression<Func<T, T2, T3, T4, T5, T6, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5, T6> Queryable<T, T2, T3, T4, T5, T6>(Expression<Func<T, T2, T3, T4, T5, T6, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5> Queryable<T, T2, T3, T4, T5>(Expression<Func<T, T2, T3, T4, T5, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5> Queryable<T, T2, T3, T4, T5>(Expression<Func<T, T2, T3, T4, T5, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4, T5> Queryable<T, T2, T3, T4, T5>(Expression<Func<T, T2, T3, T4, T5, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4> Queryable<T, T2, T3, T4>(Expression<Func<T, T2, T3, T4, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4> Queryable<T, T2, T3, T4>(Expression<Func<T, T2, T3, T4, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3, T4> Queryable<T, T2, T3, T4>(Expression<Func<T, T2, T3, T4, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3> Queryable<T, T2, T3>(Expression<Func<T, T2, T3, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3> Queryable<T, T2, T3>(Expression<Func<T, T2, T3, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2, T3> Queryable<T, T2, T3>(Expression<Func<T, T2, T3, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2> Queryable<T, T2>(Expression<Func<T, T2, bool>> joinExpression) where T : class, new()
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2> Queryable<T, T2>(Expression<Func<T, T2, JoinQueryInfos>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2> Queryable<T, T2>(Expression<Func<T, T2, object[]>> joinExpression)
|
|
{
|
|
return this.Context.Queryable(joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2> Queryable<T, T2>(ISugarQueryable<T> joinQueryable1, ISugarQueryable<T2> joinQueryable2, Expression<Func<T, T2, bool>> joinExpression)
|
|
where T : class, new()
|
|
where T2 : class, new()
|
|
{
|
|
return this.Context.Queryable(joinQueryable1,joinQueryable2,joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T, T2> Queryable<T, T2>(ISugarQueryable<T> joinQueryable1, ISugarQueryable<T2> joinQueryable2, JoinType joinType, Expression<Func<T, T2, bool>> joinExpression)
|
|
where T : class, new()
|
|
where T2 : class, new()
|
|
{
|
|
return this.Context.Queryable(joinQueryable1, joinQueryable2,joinType, joinExpression);
|
|
}
|
|
|
|
public ISugarQueryable<T> Queryable<T>()
|
|
{
|
|
return this.Context.Queryable<T>();
|
|
}
|
|
|
|
public ISugarQueryable<T> Queryable<T>(ISugarQueryable<T> queryable) where T : class, new()
|
|
{
|
|
return this.Context.Queryable<T>(queryable);
|
|
}
|
|
|
|
public ISugarQueryable<T> Queryable<T>(string shortName)
|
|
{
|
|
return this.Context.Queryable<T>(shortName);
|
|
}
|
|
|
|
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
|
{
|
|
return this.Context.Saveable<T>(saveObjects);
|
|
}
|
|
|
|
public ISaveable<T> Saveable<T>(T saveObject) where T : class, new()
|
|
{
|
|
return this.Context.Saveable(saveObject);
|
|
}
|
|
|
|
public int SaveQueues(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>, List<T6>, List<T7>> SaveQueues<T, T2, T3, T4, T5, T6, T7>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2, T3, T4, T5, T6, T7>(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>, List<T6>> SaveQueues<T, T2, T3, T4, T5, T6>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2, T3, T4, T5, T6>(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>> SaveQueues<T, T2, T3, T4, T5>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2, T3, T4, T5>(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>, List<T3>, List<T4>> SaveQueues<T, T2, T3, T4>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2, T3, T4>(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>, List<T3>> SaveQueues<T, T2, T3>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2, T3>(isTran);
|
|
}
|
|
|
|
public Tuple<List<T>, List<T2>> SaveQueues<T, T2>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T, T2>(isTran);
|
|
}
|
|
|
|
public List<T> SaveQueues<T>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueues<T>(isTran);
|
|
}
|
|
|
|
public Task<int> SaveQueuesAsync(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync(isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>, List<T6>, List<T7>>> SaveQueuesAsync<T, T2, T3, T4, T5, T6, T7>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T, T2, T3, T4, T5, T6, T7>(isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>, List<T6>>> SaveQueuesAsync<T, T2, T3, T4, T5, T6>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T, T2, T3, T4, T5, T6>(isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>, List<T3>, List<T4>, List<T5>>> SaveQueuesAsync<T, T2, T3, T4, T5>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T, T2, T3, T4, T5>(isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>, List<T3>, List<T4>>> SaveQueuesAsync<T, T2, T3, T4>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync < T, T2, T3, T4 > (isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>, List<T3>>> SaveQueuesAsync<T, T2, T3>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T, T2, T3>(isTran);
|
|
}
|
|
|
|
public Task<Tuple<List<T>, List<T2>>> SaveQueuesAsync<T, T2>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T, T2>(isTran);
|
|
}
|
|
|
|
public Task<List<T>> SaveQueuesAsync<T>(bool isTran = true)
|
|
{
|
|
return this.Context.SaveQueuesAsync<T>(isTran);
|
|
}
|
|
|
|
public ISugarQueryable<T> SqlQueryable<T>(string sql) where T : class, new()
|
|
{
|
|
return this.Context.SqlQueryable<T>(sql);
|
|
}
|
|
|
|
public ISugarQueryable<T> Union<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
|
{
|
|
return this.Context.Union(queryables);
|
|
}
|
|
|
|
public ISugarQueryable<T> Union<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
|
{
|
|
return this.Context.Union(queryables);
|
|
}
|
|
|
|
public ISugarQueryable<T> UnionAll<T>(List<ISugarQueryable<T>> queryables) where T : class, new()
|
|
{
|
|
return this.Context.UnionAll(queryables);
|
|
}
|
|
|
|
public ISugarQueryable<T> UnionAll<T>(params ISugarQueryable<T>[] queryables) where T : class, new()
|
|
{
|
|
return this.Context.UnionAll(queryables);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>() where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>();
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(Dictionary<string, object> columnDictionary) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(columnDictionary);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(dynamic updateDynamicObject) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(updateDynamicObject);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(Expression<Func<T, bool>> columns) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(columns);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(Expression<Func<T, T>> columns) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(columns);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(List<T> UpdateObjs) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(UpdateObjs);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(T UpdateObj) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(UpdateObj);
|
|
}
|
|
|
|
public IUpdateable<T> Updateable<T>(T[] UpdateObjs) where T : class, new()
|
|
{
|
|
return this.Context.Updateable<T>(UpdateObjs);
|
|
}
|
|
}
|
|
}
|