Table of Contents

Class ReadModelChangeset<TReadModel>

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Represents the changeset for a read model.

public record ReadModelChangeset<TReadModel> : IEquatable<ReadModelChangeset<TReadModel>>

Type Parameters

TReadModel

Type of read model.

Inheritance
ReadModelChangeset<TReadModel>
Implements
Inherited Members

Constructors

ReadModelChangeset(EventStoreNamespaceName, ReadModelKey, TReadModel?, bool)

Represents the changeset for a read model.

public ReadModelChangeset(EventStoreNamespaceName Namespace, ReadModelKey ModelKey, TReadModel? ReadModel, bool Removed)

Parameters

Namespace EventStoreNamespaceName

The namespace for the event store.

ModelKey ReadModelKey

The ModelKey for the model.

ReadModel TReadModel

The instance of the read model.

Removed bool

Whether the read model was removed.

Properties

ModelKey

The ModelKey for the model.

public ReadModelKey ModelKey { get; init; }

Property Value

ReadModelKey

Namespace

The namespace for the event store.

public EventStoreNamespaceName Namespace { get; init; }

Property Value

EventStoreNamespaceName

ReadModel

The instance of the read model.

public TReadModel? ReadModel { get; init; }

Property Value

TReadModel

Removed

Whether the read model was removed.

public bool Removed { get; init; }

Property Value

bool