Path: redb/redb.Tests.Integration/Models/FieldPathModels.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/FieldPathModels.cs
----
using redb.Core.Attributes;
namespace redb.Tests.Integration.Models;
///
/// A class whose own field and the field of its array elements share a name: a filter path that lost its array part
/// would read the field of the object instead of the field of the element.
///
[RedbScheme("TestFieldPath")]
public class FieldPathProps
{
public string Name { get; set; } = string.Empty;
public int Rank { get; set; }
public FieldPathItem[]? Items { get; set; }
public List? Parts { get; set; }
public Dictionary? ByKey { get; set; }
public FieldPathItem? Main { get; set; }
public Dictionary? Scores { get; set; }
}
public class FieldPathItem
{
public string Name { get; set; } = string.Empty;
public int Rank { get; set; }
public int? Score { get; set; }
}