Class FromAllAttribute

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

Attribute that can be applied to a property to indicate it should be projected from all event types.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class FromAllAttribute : Attribute, IProjectionAnnotation
Inheritance
FromAllAttribute
Implements
Inherited Members
Extension Methods

Constructors

FromAllAttribute(string?, string?)

Attribute that can be applied to a property to indicate it should be projected from all event types.

public FromAllAttribute(string? contextProperty = null, string? property = null)

Parameters

contextProperty string

Optional context property to use for the mapping (e.g., "type.id"). If not specified, tries to match event property by name.

property string

Optional event property to use for the mapping. If not specified and contextProperty is not specified, tries to match by name.

Properties

ContextProperty

Gets the optional context property to map from.

public string? ContextProperty { get; }

Property Value

string

Property

Gets the optional event property to map from.

public string? Property { get; }

Property Value

string