public WArcherDbContextFactory( IDatabase database, IEntityTypeConfigurationFactory entityTypeConfigurationFactory) { _database = database ?? throw new ArgumentNullException( nameof(database)); _entityTypeConfigurationFactory = entityTypeConfigurationFactory ?? throw new ArgumentNullException(nameof(entityTypeConfigurationFactory)); }
public WArcherDbContextFactory() { _database = new Database(); _entityTypeConfigurationFactory = new EntityTypeConfigurationFactory(); }
public TestDbContext(DbContextOptions options, IEntityTypeConfigurationFactory entityTypeConfigurationFactory) : base(options, entityTypeConfigurationFactory) { }
public WArcherDbContext( DbContextOptions options, IEntityTypeConfigurationFactory entityTypeConfigurationFactory) : base(options) { _entityTypeConfigurationFactory = entityTypeConfigurationFactory; }