Interface ISetBuilder<TModel, TEvent, TProperty, TParentBuilder>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Defines a builder for building set operations for properties - represented as expressions.
public interface ISetBuilder<TModel, TEvent, TProperty, TParentBuilder> : ISetBuilder<TModel, TEvent, TParentBuilder>, IPropertyExpressionBuilder
Type Parameters
TModel
Model to build for.
TEvent
Event to build for.
TProperty
The type of the property we're targeting.
TParentBuilder
Type of the parent builder.
- Inherited Members
Methods
To(Expression<Func<TEvent, TProperty>>)
Straight map to a property on the event.
TParentBuilder To(Expression<Func<TEvent, TProperty>> eventPropertyAccessor)
Parameters
eventPropertyAccessor
Expression<Func<TEvent, TProperty>>Event property accessor for defining the source property.
Returns
- TParentBuilder
Builder continuation.
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.
ToValue(TProperty)
Set the property to a specific value.
TParentBuilder ToValue(TProperty value)
Parameters
value
TPropertyValue to set.
Returns
- TParentBuilder
Builder continuation.