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