public BioDataSeeder(IBioDbContextFactory contextFactory) { this.contextFactory = contextFactory ?? throw new ArgumentNullException(nameof(contextFactory)); this.seeder = new FileByLineDbContextSeeder <BioDbContext>(this.contextFactory); this.dataFilesDirectoryPath = ConfigurationManager.AppSettings[AppSettingsKeys.DataFilesDirectoryName]; this.exceptions = new ConcurrentQueue <Exception>(); }
public BioDbContextProvider(IBioDbContextFactory contextFactory) { if (contextFactory == null) { throw new ArgumentNullException(nameof(contextFactory)); } this.contextFactory = contextFactory; }
public BioDataInitializer(IBioDbContextFactory contextFactory) : base(contextFactory) { }