public MongoMigrationStrategyDrop(HangfireDbContext dbContext, MongoStorageOptions storageOptions, MongoMigrationRunner migrationRunner)
     : base(dbContext, storageOptions, migrationRunner)
 {
 }
Esempio n. 2
0
 protected MongoMigrationStrategyBase(IMongoDatabase database, MongoStorageOptions storageOptions, MongoMigrationRunner migrationRunner)
 {
     _database        = database;
     _storageOptions  = storageOptions;
     _migrationRunner = migrationRunner;
 }
Esempio n. 3
0
        protected virtual void Migrate(MongoSchema fromSchema, MongoSchema toSchema)
        {
            var migrationRunner = new MongoMigrationRunner(_dbContext, _storageOptions);

            migrationRunner.Execute(fromSchema, toSchema);
        }
 public MongoMigrationStrategyDrop(IMongoDatabase database, MongoStorageOptions storageOptions, MongoMigrationRunner migrationRunner)
     : base(database, storageOptions, migrationRunner)
 {
 }
Esempio n. 5
0
 protected MongoMigrationStrategyBase(HangfireDbContext dbContext, MongoStorageOptions storageOptions, MongoMigrationRunner migrationRunner)
 {
     _dbContext       = dbContext;
     _storageOptions  = storageOptions;
     _migrationRunner = migrationRunner;
 }