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