private Result AutoMigrate(DatabaseChanges changeSet, DateTime?maxTime = null) { //生成所有自动迁移操作 var auto = new AutomationMigration() { Context = this }; auto.GenerateOpertions(changeSet); var autoMigrations = auto.Operations; if (autoMigrations.Count > 0) { this.GenerateTimeId(autoMigrations, maxTime); return(this.MigrateUpBatch(autoMigrations)); } return(true); }
private Result AutoMigrate(DatabaseChanges changeSet, DateTime? maxTime = null) { //生成所有自动迁移操作 var auto = new AutomationMigration() { Context = this }; auto.GenerateOpertions(changeSet); var autoMigrations = auto.Operations; if (autoMigrations.Count > 0) { this.GenerateTimeId(autoMigrations, maxTime); return this.MigrateUpBatch(autoMigrations); } return true; }