Class ProjectionResult<T>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents the result of an projection.
public record ProjectionResult<T> : IEquatable<ProjectionResult<T>>
Type Parameters
T
Type of model.
- Inheritance
-
ProjectionResult<T>
- Implements
- Inherited Members
Constructors
ProjectionResult(T, IEnumerable<PropertyPath>, int)
Represents the result of an projection.
public ProjectionResult(T Model, IEnumerable<PropertyPath> AffectedProperties, int ProjectedEventsCount)
Parameters
Model
TThe instance of the model.
AffectedProperties
IEnumerable<PropertyPath>Collection of properties that was set.
ProjectedEventsCount
intNumber of events that caused projection.
Properties
AffectedProperties
Collection of properties that was set.
public IEnumerable<PropertyPath> AffectedProperties { get; init; }
Property Value
- IEnumerable<PropertyPath>
Model
The instance of the model.
public T Model { get; init; }
Property Value
- T
ProjectedEventsCount
Number of events that caused projection.
public int ProjectedEventsCount { get; init; }