예제 #1
0
        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;
        }
예제 #3
0
 public BioDataInitializer(IBioDbContextFactory contextFactory)
     : base(contextFactory)
 {
 }