Path: redb/redb.Tests.Integration/Models/LazyOptionModels.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/LazyOptionModels.cs ---- using redb.Core.Attributes; using redb.Core.Models.Entities; namespace redb.Tests.Integration.Models; /// /// V4 Л2 (LAZY_REFERENCES_PLAN §3.2–3.3): the `virtual` marker under test. and /// are virtual references — with the option on the builders emit stubs for /// them regardless of depth; is deliberately NOT virtual and always loads /// eagerly. Self-referencing, so one scheme covers chains and collections. /// [RedbScheme] public class LazyOptionNodeProps { public string? Label { get; set; } /// Virtual reference — lazy when the option is on. public virtual RedbObject? Next { get; set; } /// NOT virtual — always eager, whatever the option says. public RedbObject? Plain { get; set; } /// Virtual collection of references — a list of stubs when the option is on. public virtual List>? Children { get; set; } }