Class AllSetBuilder<TModel, TParentBuilder>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IAllSetBuilder<TModel, TParentBuilder>.
public class AllSetBuilder<TModel, TParentBuilder> : IAllSetBuilder<TModel, TParentBuilder>, IPropertyExpressionBuilder
Type Parameters
TModel
Model to build for.
TParentBuilder
Type of the parent builder.
- Inheritance
-
AllSetBuilder<TModel, TParentBuilder>
- Implements
-
IAllSetBuilder<TModel, TParentBuilder>
- Inherited Members
Remarks
Initializes a new instance of the SetBuilder<TModel, TEvent, TProperty, TParentBuilder> class.
Constructors
AllSetBuilder(TParentBuilder, PropertyPath)
Represents an implementation of IAllSetBuilder<TModel, TParentBuilder>.
public AllSetBuilder(TParentBuilder parent, PropertyPath targetProperty)
Parameters
parent
TParentBuilderParent builder.
targetProperty
PropertyPathTarget property we're building for.
Remarks
Initializes a new instance of the SetBuilder<TModel, TEvent, TProperty, TParentBuilder> class.
Properties
TargetProperty
Gets the target property.
public PropertyPath TargetProperty { get; }
Property Value
- PropertyPath
Methods
Build()
Builds the expression.
public string Build()
Returns
- string
The expression built.
ToEventContextProperty(Expression<Func<EventContext, object>>)
Map to a property on the EventContext.
public 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.
public TParentBuilder ToEventSourceId()
Returns
- TParentBuilder
Builder continuation.