Class ProjectionBase<TKey>
Base class for projections that provides common functionality.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.PublicProperties)]
public abstract class ProjectionBase<TKey> : IProjection<TKey> where TKey : notnull
Type Parameters
TKeyThe type of the projection key.
- Inheritance
-
ProjectionBase<TKey>
- Implements
-
IProjection<TKey>
- Inherited Members
- Extension Methods
Properties
Id
Gets the unique identifier for this projection.
public virtual TKey Id { get; }
Property Value
- TKey
The current Id value.
LastModified
Gets or sets the timestamp when this projection was last updated.
public abstract DateTimeOffset LastModified { get; protected set; }
Property Value
- DateTimeOffset
The current LastModified value.
ProjectionKey
Gets the unique key that identifies this projection.
public abstract TKey ProjectionKey { get; }
Property Value
- TKey
The current ProjectionKey value.
Version
Gets or sets the version of this projection.
public abstract long Version { get; protected set; }