Path: redb/redb.Tests.Integration/Models/DictionaryKeyModels.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/DictionaryKeyModels.cs
----
using redb.Core.Attributes;
namespace redb.Tests.Integration.Models;
/// The value class of the dictionaries of .
public class KeyedEntry
{
public string Name { get; set; } = string.Empty;
public int Rank { get; set; }
}
/// Dictionaries whose value is a class, one per key type, for a filter on a field of an entry.
[RedbScheme("TestDictionaryKeys")]
public class DictionaryKeyProps
{
public string Marker { get; set; } = string.Empty;
public Dictionary? ByText { get; set; }
public Dictionary? ByNumber { get; set; }
public Dictionary<(int Year, string Quarter), KeyedEntry>? ByTuple { get; set; }
public Dictionary? ByFlag { get; set; }
public Dictionary? ByDate { get; set; }
public Dictionary? ByRatio { get; set; }
}