public DbFactory(MultipleSqlSugarOptions multipleOptions, Action <string> logAction) { _multipleOptions = multipleOptions; _options = _multipleOptions.FirstOrDefault(x => x.IsDefaultOption); _logAction = logAction; }
public SqlSugarUnitOfWork(MultipleSqlSugarOptions multipleOptions, Action <string> logAction) { _multipleOptions = multipleOptions; _dbFactory = new DbFactory(_multipleOptions, logAction); }
public SqlSugarUnitOfWorkModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings) { _options = JimuAppSettings.GetSection(typeof(SqlSugarOptions).Name).Get <SqlSugarOptions>(); _mulOptions = JimuAppSettings.GetSection(typeof(MultipleSqlSugarOptions).Name).Get <MultipleSqlSugarOptions>(); }