Table of Contents

Class ModelSnapshot

Namespace
The.Model.Snapshot
Assembly
Instagile.Model.dll
public class ModelSnapshot : ICompareForDiff
Inheritance
ModelSnapshot
Implements
Inherited Members

Fields

Attribute

public readonly IReadOnlyDictionary<Guid, AttributeSnapshot> Attribute

Field Value

IReadOnlyDictionary<Guid, AttributeSnapshot>

EmptyText

public readonly string EmptyText

Field Value

string

Entity

public readonly IReadOnlyDictionary<Guid, EntitySnapshot> Entity

Field Value

IReadOnlyDictionary<Guid, EntitySnapshot>

LatestVersion

public readonly Version LatestVersion

Field Value

Version

Namespace

public readonly string Namespace

Field Value

string

Relationship

public readonly IReadOnlyDictionary<Guid, RelationshipSnapshot> Relationship

Field Value

IReadOnlyDictionary<Guid, RelationshipSnapshot>

Section

public readonly IReadOnlyDictionary<Guid, SectionSnapshot> Section

Field Value

IReadOnlyDictionary<Guid, SectionSnapshot>

ShouldConstrainLegacyRelationships

public readonly bool ShouldConstrainLegacyRelationships

Field Value

bool

ShouldEnforceNonNullability

public readonly bool ShouldEnforceNonNullability

Field Value

bool

UseAuditV2

public readonly bool UseAuditV2

Field Value

bool

UseInstantForAudit

public readonly bool UseInstantForAudit

Field Value

bool

Properties

AllEvents

public IReadOnlyList<IEvent> AllEvents { get; }

Property Value

IReadOnlyList<IEvent>

Attributes

public IReadOnlyList<AttributeSnapshot> Attributes { get; }

Property Value

IReadOnlyList<AttributeSnapshot>

Entities

public IReadOnlyList<EntitySnapshot> Entities { get; }

Property Value

IReadOnlyList<EntitySnapshot>

IncludedEvents

Subset of the full history which contributed to this snapshot but not to previous versions.

public IReadOnlyList<IEvent> IncludedEvents { get; }

Property Value

IReadOnlyList<IEvent>

Relationships

public IReadOnlyList<RelationshipSnapshot> Relationships { get; }

Property Value

IReadOnlyList<RelationshipSnapshot>

Sections

public IReadOnlyList<SectionSnapshot> Sections { get; }

Property Value

IReadOnlyList<SectionSnapshot>

Methods

AuditValidity(IProgress<Status>?)

perform expensive integrity checks on the denormalised snapshot

public void AuditValidity(IProgress<Status>? progress = null)

Parameters

progress IProgress<Status>

Diff(ModelSnapshot, bool)

describe the difference between two snapshots

public string Diff(ModelSnapshot that, bool ignoreCopies)

Parameters

that ModelSnapshot
ignoreCopies bool

Returns

string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(object?, bool)

public bool Equals(object? obj, bool ignoreCopies)

Parameters

obj object
ignoreCopies bool

Returns

bool

GetAllTags()

public IEnumerable<KeyValuePair<string, string>> GetAllTags()

Returns

IEnumerable<KeyValuePair<string, string>>

GetHashCode()

public override int GetHashCode()

Returns

int

GetTag(string)

public Optional<string> GetTag(string key)

Parameters

key string

Returns

Optional<string>

ToEvents()

public IEnumerable<IEvent> ToEvents()

Returns

IEnumerable<IEvent>

ToString()

public override string ToString()

Returns

string