using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SqlSugar { public interface ITenant { void BeginTran(); void BeginTran(IsolationLevel iso); void CommitTran(); void RollbackTran(); Task BeginTranAsync(); Task BeginTranAsync(IsolationLevel iso); Task CommitTranAsync(); Task RollbackTranAsync(); void ChangeDatabase(dynamic configId); void ChangeDatabase(Func changeExpression); SqlSugarTransaction UseTran(); DbResult UseTran(Action action, Action errorCallBack = null); Task> UseTranAsync(Func action, Action errorCallBack = null); DbResult UseTran(Func action, Action errorCallBack = null); Task> UseTranAsync(Func> action, Action errorCallBack = null); void AddConnection(ConnectionConfig connection); SqlSugarProvider GetConnection(dynamic configId); void RemoveConnection(dynamic configId); SqlSugarScopeProvider GetConnectionScope(dynamic configId); SqlSugarProvider GetConnectionWithAttr(); SqlSugarScopeProvider GetConnectionScopeWithAttr(); ISugarQueryable QueryableWithAttr(); IInsertable InsertableWithAttr(T insertObj) where T : class, new(); IInsertable InsertableWithAttr(List insertObjs) where T : class, new(); IUpdateable UpdateableWithAttr(T updateObj) where T : class, new(); IUpdateable UpdateableWithAttr() where T : class, new(); IUpdateable UpdateableWithAttr(List updateObjs) where T : class, new(); IDeleteable DeleteableWithAttr(T deleteObjs) where T : class, new(); IDeleteable DeleteableWithAttr(List deleteObjs) where T : class, new(); bool IsAnyConnection(dynamic configId); void Close(); void Open(); } }