コード例 #1
0
 public WArcherDbContextFactory(
     IDatabase database,
     IEntityTypeConfigurationFactory entityTypeConfigurationFactory)
 {
     _database = database ??
                 throw new ArgumentNullException(
                           nameof(database));
     _entityTypeConfigurationFactory = entityTypeConfigurationFactory ??
                                       throw new ArgumentNullException(nameof(entityTypeConfigurationFactory));
 }
コード例 #2
0
 public WArcherDbContextFactory()
 {
     _database = new Database();
     _entityTypeConfigurationFactory = new EntityTypeConfigurationFactory();
 }
コード例 #3
0
 public TestDbContext(DbContextOptions options, IEntityTypeConfigurationFactory entityTypeConfigurationFactory) :
     base(options, entityTypeConfigurationFactory)
 {
 }
コード例 #4
0
 public WArcherDbContext(
     DbContextOptions options,
     IEntityTypeConfigurationFactory entityTypeConfigurationFactory) : base(options)
 {
     _entityTypeConfigurationFactory = entityTypeConfigurationFactory;
 }