Class AddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IAddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>.
public class AddBuilder<TReadModel, TEvent, TProperty, TParentBuilder> : IAddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>, IPropertyExpressionBuilder where TParentBuilder : class, IReadModelPropertiesBuilder<TReadModel, TEvent, TParentBuilder>
Type Parameters
TReadModelRead model to build for.
TEventEvent to build for.
TPropertyThe type of the property we're targeting.
TParentBuilderType of the parent builder.
- Inheritance
-
AddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
- Implements
-
IAddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
- Inherited Members
Constructors
AddBuilder(TParentBuilder, PropertyPath, INamingPolicy)
Represents an implementation of IAddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>.
public AddBuilder(TParentBuilder parent, PropertyPath targetProperty, INamingPolicy namingPolicy)
Parameters
parentTParentBuilderParent builder.
targetPropertyPropertyPathTarget property we're building for.
namingPolicyINamingPolicyThe INamingPolicy to use for property names.
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.
With(Expression<Func<TEvent, TProperty>>)
Add with a property on the event.
public TParentBuilder With(Expression<Func<TEvent, TProperty>> eventPropertyAccessor)
Parameters
eventPropertyAccessorExpression<Func<TEvent, TProperty>>Event property accessor for defining the source property.
Returns
- TParentBuilder
Builder continuation.