コード例 #1
0
        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;
            }
        }
コード例 #2
0
ファイル: MigrationController.cs プロジェクト: BO45/NzbDrone
 public MigrationController(IAnnouncer announcer, ISQLiteAlter sqLiteAlter, ISqLiteMigrationHelper migrationHelper)
 {
     _announcer = announcer;
     _sqLiteAlter = sqLiteAlter;
     _migrationHelper = migrationHelper;
 }