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