public DbMigrator(IMigrationsResolver migrationsResolver, string schemaName = DefaultSchema)
 {
     _migrationsResolver = migrationsResolver ?? throw new ArgumentNullException(nameof(migrationsResolver));
     _versionTable       = new CachedDatabaseVersionTable(new DatabaseVersionTable(schemaName));
 }
Exemple #2
0
 public DbMigrator(string schemaName, IMigrationsResolver migrationsResolver)
 {
     _migrationsResolver = migrationsResolver ?? throw new ArgumentNullException(nameof(migrationsResolver));
     SchemaName          = schemaName ?? throw new ArgumentNullException(nameof(schemaName));
     VersionTable        = new CachedDatabaseVersionTable(new DatabaseVersionTable(SchemaName));
 }