Exemple #1
0
 public DbConnectionUnitOfWorkModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings)
 {
     _options    = JimuAppSettings.GetSection(typeof(DbConOptions).Name).Get <DbConOptions>();
     _mulOptions = JimuAppSettings.GetSection(typeof(MultipleDbConOptions).Name).Get <MultipleDbConOptions>();
 }
Exemple #2
0
 public DbConnectionUnitOfWork(MultipleDbConOptions multipleOptions)
 {
     _multipleOptions = multipleOptions;
     _dbFactory       = new DbFactory(_multipleOptions);
 }
Exemple #3
0
 public DbFactory(MultipleDbConOptions multipleOptions)
 {
     _multipleOptions = multipleOptions;
     _options         = _multipleOptions.FirstOrDefault(x => x.IsDefaultOption);
 }