public void Build(IMigrationRules rules) { rules.ForType <A2>().MatchesTypeName(typeof(A1).FullName); rules.ForType <B2>() .UseAlias("btwoalias") .MatchesTypeName(typeof(B1).FullName); }
public void Build(IMigrationRules rules) { rules.ForType <MyTypeC_V2>() .Field("valueA").RenamedTo("valueAV2"); rules.ForType <MyTypeD_V2>() .Field("valueA").Ignore(); }
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(); }
public void Build(IMigrationRules rules) { rules.ForType <MyTypeA_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeA_V1"); rules.ForType <MyTypeB_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeB_V1"); rules.ForType <MyTypeC_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeC_V1"); childRulesBuilders.ToList().ForEach(builder => builder.Build(rules)); }
public void Build(IMigrationRules rules) { rules.ForType<TypeA>() .MatchesTypeName("MyOldNamespace.MyOldTypeA") .Field("noLongerLovedField").Ignore() .Field("oldFieldName").RenamedTo("newFieldName") .Field("newFieldName").SetTo(42); }
public void Build(IMigrationRules rules) { rules.ForType <TypeA>() .MatchesTypeName("MyOldNamespace.MyOldTypeA") .Field("noLongerLovedField").Ignore() .Field("oldFieldName").RenamedTo("newFieldName") .Field("newFieldName").SetTo(42); }
public void Build(IMigrationRules rules) { rules.ForType<B1>().UseAlias("bonealias"); }
public void Build(IMigrationRules rules) { rules.ForType<A2>().MatchesTypeName(typeof (A1).FullName); rules.ForType<B2>() .UseAlias("btwoalias") .MatchesTypeName(typeof (B1).FullName); }
public void Build(IMigrationRules rules) { rules.ForType<A2>().MatchesTypeName(typeof (A1).FullName); }
public void Build(IMigrationRules rules) { rules.ForType <MyTypeE_V2>() .Field("valueA").ConvertUsing(new ToByteConverter()); }
public void Build(IMigrationRules rules) { rules.ForType<MyTypeC_V2>() .Field("valueA").RenamedTo("valueAV2"); rules.ForType<MyTypeD_V2>() .Field("valueA").Ignore(); }
public void Build(IMigrationRules rules) { rules.ForType<MyTypeE_V2>() .Field("valueA").ConvertUsing(new ToByteConverter()); }
public void Build(IMigrationRules rules) { rules.ForType <B1>().UseAlias("bonealias"); }
public void Build(IMigrationRules rules) { rules.ForType <MyTypeA_V2>() .MatchesTypeName("NSerializer.UATs.Migration.VersionMigrationManagementUATs+MyTypeA_V1"); }
public void Build(IMigrationRules rules) { rules.ForType<MyTypeA_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeA_V1"); rules.ForType<MyTypeB_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeB_V1"); rules.ForType<MyTypeC_V2>() .MatchesTypeName("NSerializer.UATs.Migration.TypeMigrationUATs+MyTypeC_V1"); childRulesBuilders.ToList().ForEach(builder => builder.Build(rules)); }
public void Build(IMigrationRules rules) { rules.ForType <A2>().MatchesTypeName(typeof(A1).FullName); }