private MigrationPath _BuildMigrationPathUsingSequentialVersions(IContentMigrator migrator, int fromVersion, int toVersion) { MigrationPath migrationPath = new MigrationPath(); while (fromVersion != toVersion) { IMigrationSegment segment = _FindExactMigration(migrator, fromVersion, fromVersion + 1); if (segment == null) return null; migrationPath.Add(segment); fromVersion++; } return migrationPath; }
private MigrationPath _BuildMigrationPathUsingSequentialVersions(IContentMigrator migrator, int fromVersion, int toVersion) { MigrationPath migrationPath = new MigrationPath(); while (fromVersion != toVersion) { IMigrationSegment segment = _FindExactMigration(migrator, fromVersion, fromVersion + 1); if (segment == null) { return(null); } migrationPath.Add(segment); fromVersion++; } return(migrationPath); }