Path: redb/redb.Tests.Integration/Models/SchemeRenameModels.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Tests.Integration/Models/SchemeRenameModels.cs ---- using redb.Core.Attributes; namespace redb.Tests.Integration.Models; // Props for the RedbScheme.RenamedFrom suite. The old class of a scenario carries no [RedbScheme], so its scheme is // named after its FullName and the fixture does not sync it at start; the new class names it in RenamedFrom. /// Older class of the plain rename. public class SchemeRenameV1 { public string Title { get; set; } = ""; } /// Next version: another class, another scheme name, the same stored scheme. [RedbScheme(Name = "rename_scheme_v2", RenamedFrom = ["redb.Tests.Integration.Models.SchemeRenameV1"])] public class SchemeRenameV2 { public string Title { get; set; } = ""; } /// Older class of the both-stored case. public class SchemeRenameBothV1 { public string Title { get; set; } = ""; } [RedbScheme(Name = "rename_scheme_both", RenamedFrom = ["redb.Tests.Integration.Models.SchemeRenameBothV1"])] public class SchemeRenameBothV2 { public string Title { get; set; } = ""; } /// A chain of explicit names; the stored names are staged by SQL. [RedbScheme(Name = "rename_scheme_chain", RenamedFrom = ["rename_scheme_chain_a", "rename_scheme_chain_b"])] public class SchemeRenameChainProps { public string Title { get; set; } = ""; } /// A class whose scheme a version this process does not have renamed away (staged by SQL). public class SchemeRenameGuardV1 { public string Title { get; set; } = ""; } /// A class taking a scheme name that a scheme of this application was renamed from (staged by SQL). public class SchemeRenameReuseProps { public string Title { get; set; } = ""; } /// The FullName-to-explicit-name rename that predates RenamedFrom: it records the history too. [RedbScheme(Name = "rename_scheme_legacy")] public class SchemeRenameLegacyProps { public string Title { get; set; } = ""; }