Table of Contents

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

List<Entitree>

Collections

The membership of each collection petrified with this entity.

public List<Entitree.Membership> Collections { get; init; }

Property Value

List<Entitree.Membership>

Leaf

public Guid Leaf { get; init; }

Property Value

Guid

Methods

Petrify(Dictionary<Guid, Row>, IEntity)

public static Entitree Petrify(Dictionary<Guid, Row> data, IEntity leaf)

Parameters

data Dictionary<Guid, Row>
leaf IEntity

Returns

Entitree

Reify(Dictionary<Guid, Row>, IEntityContext)

public void Reify(Dictionary<Guid, Row> state, IEntityContext context)

Parameters

state Dictionary<Guid, Row>
context IEntityContext