Path: redb/redb.Tests.Integration/Models/ProjectionModels.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/ProjectionModels.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 Select-projection suite (review 2026-09-03, wave 1.1).
/// Synced by the tests that use it, not by the fixtures.
///
[RedbScheme(Name = "ProjectionProbe")]
public class ProjectionProbeProps
{
public string? S { get; set; }
public int N { get; set; }
public decimal? D { get; set; }
public bool Flag { get; set; }
public ProjectionProbeNested? Nested { get; set; }
public List? Items { get; set; }
public string[]? Tags { get; set; }
public RedbObject? Child { get; set; }
}
public class ProjectionProbeNested
{
public string? City { get; set; }
public int Zip { get; set; }
}
public class ProjectionProbeItem
{
public string? Name { get; set; }
public decimal Price { get; set; }
}
[RedbScheme(Name = "ProjectionProbeChild")]
public class ProjectionProbeChildProps
{
public string? Label { get; set; }
}
/// DTO target for MemberInit projections (S-5/G-1 shapes).
public class ProjectionDto
{
public string? A { get; set; }
public int N { get; set; }
public ProjectionSubDto Sub { get; set; } = new();
}
public class ProjectionSubDto
{
public int X { get; set; }
}