Class ModelSnapshot
public class ModelSnapshot : ICompareForDiff
- Inheritance
-
ModelSnapshot
- Implements
- Inherited Members
Fields
Attribute
public readonly IReadOnlyDictionary<Guid, AttributeSnapshot> Attribute
Field Value
EmptyText
public readonly string EmptyText
Field Value
Entity
public readonly IReadOnlyDictionary<Guid, EntitySnapshot> Entity
Field Value
LatestVersion
public readonly Version LatestVersion
Field Value
Namespace
public readonly string Namespace
Field Value
Relationship
public readonly IReadOnlyDictionary<Guid, RelationshipSnapshot> Relationship
Field Value
Section
public readonly IReadOnlyDictionary<Guid, SectionSnapshot> Section
Field Value
ShouldConstrainLegacyRelationships
public readonly bool ShouldConstrainLegacyRelationships
Field Value
ShouldEnforceNonNullability
public readonly bool ShouldEnforceNonNullability
Field Value
UseAuditV2
public readonly bool UseAuditV2
Field Value
UseInstantForAudit
public readonly bool UseInstantForAudit
Field Value
Properties
AllEvents
public IReadOnlyList<IEvent> AllEvents { get; }
Property Value
Attributes
public IReadOnlyList<AttributeSnapshot> Attributes { get; }
Property Value
Entities
public IReadOnlyList<EntitySnapshot> Entities { get; }
Property Value
IncludedEvents
Subset of the full history which contributed to this snapshot but not to previous versions.
public IReadOnlyList<IEvent> IncludedEvents { get; }
Property Value
Relationships
public IReadOnlyList<RelationshipSnapshot> Relationships { get; }
Property Value
Sections
public IReadOnlyList<SectionSnapshot> Sections { get; }
Property Value
Methods
AuditValidity(IProgress<Status>?)
perform expensive integrity checks on the denormalised snapshot
public void AuditValidity(IProgress<Status>? progress = null)
Parameters
Diff(ModelSnapshot, bool)
describe the difference between two snapshots
public string Diff(ModelSnapshot that, bool ignoreCopies)
Parameters
thatModelSnapshotignoreCopiesbool
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(object?, bool)
public bool Equals(object? obj, bool ignoreCopies)
Parameters
Returns
GetAllTags()
public IEnumerable<KeyValuePair<string, string>> GetAllTags()
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetTag(string)
public Optional<string> GetTag(string key)
Parameters
keystring
Returns
ToEvents()
public IEnumerable<IEvent> ToEvents()
Returns
ToString()
public override string ToString()