public void Build(IMigrationRules rules) { rules.From(new Version(1, 4)) .MigrateUsing(new From1V4MigrationRulesBuilder()) .AllPriorVersions().NotSupported(); rules.From(new Version(1, 5)) .NoMigrationRequired(); childRulesBuilders.ToList().ForEach(builder => builder.Build(rules)); }
public void Build(IMigrationRules rules) { rules.ForType <TypeA>().UseAlias("XYZServiceType"); rules.ForType <TypeB>().UseAlias("ABCServiceType"); rules .From(new Version(1, 2, 6)).MigrateUsing(new V010203Migrator()) .From(new Version(1, 2, 5)).MigrateUsing(new V010202Migrator()) .From(new Version(1, 2, 4)).NotSupported() .From(new Version(1, 2, 0)).MigrateUsing(new V010200Migrator()) .AllPriorVersions().NotSupported(); }
public void Build(IMigrationRules rules) { rules.ForType<TypeA>().UseAlias("XYZServiceType"); rules.ForType<TypeB>().UseAlias("ABCServiceType"); rules .From(new Version(1, 2, 6)).MigrateUsing(new V010203Migrator()) .From(new Version(1, 2, 5)).MigrateUsing(new V010202Migrator()) .From(new Version(1, 2, 4)).NotSupported() .From(new Version(1, 2, 0)).MigrateUsing(new V010200Migrator()) .AllPriorVersions().NotSupported(); }