Path: redb/redb.Tests.Integration/Models/PageValuesModels.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/PageValuesModels.cs
----
using redb.Core.Attributes;
namespace redb.Tests.Integration.Models;
///
/// A graph that asks the Pro materializer every kind of lookup over the rows of a page: root fields, a root class, a
/// class array whose elements carry a class field, a scalar array and a class array of their own, a dictionary of
/// classes, a scalar array of more than ten elements (numeric, not text, order of the array index).
///
[RedbScheme("TestPageValuesGraph")]
public class PageGraphProps
{
public string? Title { get; set; }
public PageGraphLine? Head { get; set; }
public List? Lines { get; set; }
public Dictionary? ByCode { get; set; }
public List? Numbers { get; set; }
public List? Empty { get; set; }
public List? Missing { get; set; }
}
/// An element: its fields hang under the element row.
public class PageGraphLine
{
public string? Code { get; set; }
public PageGraphInner? Inner { get; set; }
public List? Tags { get; set; }
public List? Parts { get; set; }
}
/// The class inside an element, with an array of its own.
public class PageGraphInner
{
public int Level { get; set; }
public string? Note { get; set; }
public List? Marks { get; set; }
}