Class Entitree
- Namespace
- The.Persistence
- Assembly
- Instagile.dll
Serialised entity graph structure, with a root and its loaded relationships. Row data is stored separately in an InertGraph.
[MessagePackObject(true)]
public sealed record Entitree : IEquatable<Entitree>
- Inheritance
-
Entitree
- Implements
- Inherited Members
Remarks
Does not serialise unloaded or changed data. Web pages using prerendering with persistence (typically via <BoundEntity>)
should avoid making changes between registering for persistence and completing the prerender; any such changes would have to be repeated
in the live circuit, and wouldn't be able to assume that data IsPresent.
Properties
Branches
Entities petrified along with this one: the targets of its loaded references, and the members of its Collections not petrified elsewhere.
[JsonInclude]
public List<Entitree> Branches { get; }
Property Value
Collections
The membership of each collection petrified with this entity.
public List<Entitree.Membership> Collections { get; init; }
Property Value
Leaf
public Guid Leaf { get; init; }
Property Value
Methods
Petrify(Dictionary<Guid, Row>, IEntity)
public static Entitree Petrify(Dictionary<Guid, Row> data, IEntity leaf)
Parameters
dataDictionary<Guid, Row>leafIEntity
Returns
Reify(Dictionary<Guid, Row>, IEntityContext)
public void Reify(Dictionary<Guid, Row> state, IEntityContext context)
Parameters
stateDictionary<Guid, Row>contextIEntityContext