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