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