Path: redb/redb.Tests.Integration/Models/ElementIndexModels.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/ElementIndexModels.cs
----
using redb.Core.Attributes;
using redb.Core.Models.Entities;
namespace redb.Tests.Integration.Models;
///
/// Arrays and lists read by index in a filter. The object's own Name and Rank share their names with the fields of
/// the elements, so a path that lost its element would compare the object's field instead.
///
[RedbScheme("TestElementIndex")]
public class ElementIndexProps
{
public string Marker { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public int Rank { get; set; }
public int[]? Levels { get; set; }
public List? Tags { get; set; }
public ElementIndexItem[]? Items { get; set; }
public List? Parts { get; set; }
public List? Statuses { get; set; }
}
public class ElementIndexItem
{
public string Name { get; set; } = string.Empty;
public int Rank { get; set; }
public int? Score { get; set; }
public ElementIndexInner? Inner { get; set; }
public int[]? Marks { get; set; }
}
public class ElementIndexInner
{
public string Name { get; set; } = string.Empty;
}