public DbFactory(MultipleEFOptions multipleOptions, Action <LogLevel, string> logAction) { _multipleOptions = multipleOptions; _options = _multipleOptions.FirstOrDefault(x => x.IsDefaultOption); _logAction = logAction; }
public EFUnitOfWork(MultipleEFOptions multipleOptions, Action <LogLevel, string> logAction) { _multipleOptions = multipleOptions; _dbFactory = new DbFactory(_multipleOptions, logAction); }
public EFUnitOfWorkModule(IConfigurationRoot jimuAppSettings) : base(jimuAppSettings) { _options = JimuAppSettings.GetSection(typeof(EFOptions).Name).Get <EFOptions>(); _mulOptions = JimuAppSettings.GetSection(typeof(MultipleEFOptions).Name).Get <MultipleEFOptions>(); }