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