Interface IAllSetBuilder<TReadModel, TParentBuilder>

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

Defines a builder for building set operations for properties that will be applied for all events the projection is projecting from - represented as expressions.

public interface IAllSetBuilder<TReadModel, TParentBuilder> : IPropertyExpressionBuilder

Type Parameters

TReadModel

Read model to build for.

TParentBuilder

Type of the parent builder.

Inherited Members
Extension Methods

Methods

ToEventContextProperty(Expression<Func<EventContext, object>>)

Map to a property on the EventContext.

TParentBuilder ToEventContextProperty(Expression<Func<EventContext, object>> eventContextPropertyAccessor)

Parameters

eventContextPropertyAccessor Expression<Func<EventContext, object>>

Property accessor for specifying which property to map to.

Returns

TParentBuilder

Builder continuation.

ToEventSourceId()

Map to the event source id on the metadata of the event.

TParentBuilder ToEventSourceId()

Returns

TParentBuilder

Builder continuation.

ToValue<TProperty>(TProperty)

Map to a constant value for every matching event.

TParentBuilder ToValue<TProperty>(TProperty value)

Parameters

value TProperty

The value to set, or null to clear the property.

Returns

TParentBuilder

Builder continuation.

Type Parameters

TProperty

Type of the constant value.

Remarks

The value is not type-checked against the target read model property, because this builder does not carry the property type - TProperty is inferred from value. Pass a value whose type matches the property; a mismatch is not reported when the projection is defined.