예제 #1
0
        private void UnMigrateLegacyDb()
        {
            var upgradeConfig = new TicketDesk.Domain.Legacy.Migrations.Configuration();

            upgradeConfig.TargetDatabase = new DbConnectionInfo("TicketDesk2xRefernece");

            //this will do nothing but add the migration history table with the exact same migration ID as is used by the standard migrator.
            var migrator = new DbMigrator(upgradeConfig);

            migrator.Update("0");
        }
        private void UnMigrateLegacyDb()
        {
            var upgradeConfig = new TicketDesk.Domain.Legacy.Migrations.Configuration();
            upgradeConfig.TargetDatabase = new DbConnectionInfo("TicketDesk2xRefernece");

            //this will do nothing but add the migration history table with the exact same migration ID as is used by the standard migrator.
            var migrator = new DbMigrator(upgradeConfig);
            migrator.Update("0");
        }