Path: redb/redb.Tests.Integration/Models/CtProbeModels.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/CtProbeModels.cs
----
using System;
using System.Collections.Generic;
using redb.Core.Attributes;
using redb.Core.Models.Entities;
namespace redb.Tests.Integration.Models;
///
/// Probe scheme for the ChangeTracking save-invariants suite (ревью 2026-09-03, волна 1.2 + Ш1/Ш2).
/// Synced by the tests that use it, not by the fixtures.
///
[RedbScheme(Name = "CtProbe")]
public class CtProbeProps
{
public string? Label { get; set; }
public long[]? Longs { get; set; }
public decimal[]? Decimals { get; set; }
public string?[]? Tags { get; set; }
public Dictionary? Dict { get; set; }
public Dictionary<(int Year, string Quarter), string>? TupleDict { get; set; }
public List? Items { get; set; }
public List>? Refs { get; set; }
public Dictionary>? RefDict { get; set; }
public RedbListItem? Status { get; set; }
public List? Roles { get; set; }
}
public class CtProbeItem
{
public string? Name { get; set; }
public decimal Price { get; set; }
/// Ш4: собственный массив внутри класса-элемента массива (коллекция в коллекции).
public long[]? Codes { get; set; }
/// Ш4: собственный словарь внутри класса-элемента массива.
public Dictionary? Meta { get; set; }
}
/// Отдельная схема-ребёнок для пинов референс-коллекций (Ш2).
[RedbScheme(Name = "CtProbeChild")]
public class CtProbeChildProps
{
public string? Tag { get; set; }
}