コード例 #1
0
        private static void PlanToGoBetweenVersions(int currentVersion, int?targetVersion)
        {
            var databaseLocalMemory = new DatabaseLocalMemory();

            ChangePlanner.MakePlan(databaseLocalMemory, new ChangeGoal(currentVersion, targetVersion),
                                   TestData.Migrations(3, 4, 5).ToLoaders());
        }
        private static MigrationSet RequestMigrationBetween(int currentVersion, int?destinationVersion,
                                                            IMigrationLoader[] migrationsAvailable = null)
        {
            var available = migrationsAvailable ?? DefinedVersions(0);

            return(ChangePlanner.MakePlan(null, new ChangeGoal(currentVersion, destinationVersion),
                                          available));
        }