Table of Contents

Class ProjectionChangeset<TReadModel>

Namespace
Cratis.Chronicle.Projections
Assembly
Cratis.Chronicle.dll

Represents the changeset for a projection.

public record ProjectionChangeset<TReadModel> : IEquatable<ProjectionChangeset<TReadModel>>

Type Parameters

TReadModel

Type of read model the projection is for.

Inheritance
ProjectionChangeset<TReadModel>
Implements
Inherited Members

Constructors

ProjectionChangeset(EventStoreNamespaceName, ReadModelKey, TReadModel?, bool)

Represents the changeset for a projection.

public ProjectionChangeset(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