Path: redb/redb.Tests.Integration/Models/LazyReferenceModels.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/LazyReferenceModels.cs ---- using redb.Core.Attributes; using redb.Core.Models.Entities; namespace redb.Tests.Integration.Models; /// /// Self-referencing node for the V4 Л1 lazy-reference scenarios (LAZY_REFERENCES_PLAN §6): /// one scheme gives chains of any depth () and collections of references /// (). The [RedbScheme] marker matters: the Pro stub materializer resolves /// the CLR type for a nested reference through the attribute-driven registry. /// [RedbScheme] public class LazyNodeProps { public string? Label { get; set; } /// A single reference — the stub scenario. public RedbObject? Next { get; set; } /// A collection of references — the list-of-stubs scenario. public List>? Children { get; set; } /// /// A nested class: depth counts reference hops, never class nesting, so a class field is loaded /// completely at any depth — by the SQL builders and the Pro materializer alike. /// public LazyNodeMeta? Meta { get; set; } } public class LazyNodeMeta { public string? Tag { get; set; } }