Table of Contents

Class IncrementAttribute<TEvent>

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

Attribute used to indicate that a property value should be incremented when an event occurs.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = true)]
public sealed class IncrementAttribute<TEvent> : Attribute, IProjectionAnnotation, IIncrementAttribute, IEventBoundAttribute

Type Parameters

TEvent

The type of event that triggers the increment.

Inheritance
IncrementAttribute<TEvent>
Implements
Inherited Members

Properties

ConstantKey

Gets a constant value to use as the key. All events of this type will update the same read model instance.

public string? ConstantKey { get; init; }

Property Value

string

EventType

Gets the type of event this attribute is bound to.

public Type EventType { get; }

Property Value

Type