public override void Up() { var context = (MigrationContext)ApplicationContext; SqLiteAlter = context.SQLiteAlter; MigrationHelper = context.MigrationHelper; switch (context.MigrationType) { case MigrationType.Main: MainDbUpgrade(); return; case MigrationType.Log: LogDbUpgrade(); return; default: LogDbUpgrade(); MainDbUpgrade(); return; } }
public MigrationController(IAnnouncer announcer, ISQLiteAlter sqLiteAlter, ISqLiteMigrationHelper migrationHelper) { _announcer = announcer; _sqLiteAlter = sqLiteAlter; _migrationHelper = migrationHelper; }