Path: redb/redb.Tests.Integration/Models/GraphModels.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/GraphModels.cs
----
using redb.Core.Attributes;
using redb.Core.Models.Entities;
namespace redb.Tests.Integration.Models;
///
/// A node with two references to nodes of the same scheme: enough to build a graph that is not a tree - two parents
/// sharing one target - which is what the save's hashing and collection must handle.
///
[RedbScheme]
public class GraphNodeProps
{
public string Title { get; set; } = string.Empty;
public RedbObject? Left { get; set; }
public RedbObject? Right { get; set; }
}