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
TReadModelType of read model the projection is for.
- Inheritance
-
ProjectionChangeset<TReadModel>
- Implements
-
IEquatable<ProjectionChangeset<TReadModel>>
- 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
NamespaceEventStoreNamespaceNameThe namespace for the event store.
ModelKeyReadModelKeyThe ModelKey for the model.
ReadModelTReadModelThe instance of the read model.
RemovedboolWhether the read model was removed.
Properties
ModelKey
The ModelKey for the model.
public ReadModelKey ModelKey { get; init; }
Property Value
Namespace
The namespace for the event store.
public EventStoreNamespaceName Namespace { get; init; }
Property Value
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; }