namespace Cis.Core; /// /// SqlSugar仓储类 /// /// public class SqlSugarRepository : SimpleClient where T : class, new() { protected ITenant iTenant = null; // 多租户事务 public SqlSugarRepository(ISqlSugarClient context = null) : base(context) // 默认值等于null不能少 { iTenant = App.GetService().AsTenant(); base.Context = iTenant.GetConnectionWithAttr(); } }