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
TReadModelType of read model.
- Inheritance
-
ReadModelChangeset<TReadModel>
- Implements
-
IEquatable<ReadModelChangeset<TReadModel>>
- 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
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; }