Table of Contents

Class CollectionStoreDocument

Namespace
EncDotNet.S100.Collections.Persistence
Assembly
EncDotNet.S100.Collections.dll

The persisted set of collection definitions (the viewer's collections.json). Holds only references to sources; indexes are stored separately.

public sealed record CollectionStoreDocument : IEquatable<CollectionStoreDocument>
Inheritance
CollectionStoreDocument
Implements
Inherited Members

Constructors

CollectionStoreDocument(int, IReadOnlyList<DatasetCollection>)

The persisted set of collection definitions (the viewer's collections.json). Holds only references to sources; indexes are stored separately.

public CollectionStoreDocument(int Version, IReadOnlyList<DatasetCollection> Collections)

Parameters

Version int

The document format version.

Collections IReadOnlyList<DatasetCollection>

The collections, in display order.

Fields

CurrentVersion

The format version this library writes.

public const int CurrentVersion = 1

Field Value

int

Properties

Collections

The collections, in display order.

public IReadOnlyList<DatasetCollection> Collections { get; init; }

Property Value

IReadOnlyList<DatasetCollection>

Empty

An empty document at the current version.

public static CollectionStoreDocument Empty { get; }

Property Value

CollectionStoreDocument

Version

The document format version.

public int Version { get; init; }

Property Value

int