Path: redb/redb.Tests.Integration/Models/DictionaryInterfaceModels.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/DictionaryInterfaceModels.cs
----
using redb.Core.Attributes;
namespace redb.Tests.Integration.Models;
// ───────────────────────────────────────────────
// A dictionary field declared through the interface (DataLoss p.3)
// ───────────────────────────────────────────────
[RedbScheme("DictionaryInterfaceProbe")]
public class DictionaryInterfaceProbeProps
{
public string? Label { get; set; }
///
/// Declared as the interface on purpose. The scheme builder accepts IDictionary<K,V>, so
/// the structure becomes a dictionary, and the RUNTIME value decides whether the save path can
/// enumerate it into rows.
///
public IDictionary? Tags { get; set; }
}