Interface IAddBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Defines a builder for building add operations for properties - represented as expressions.
public interface 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.
- Inherited Members
Methods
With(Expression<Func<TEvent, TProperty>>)
Add with a property on the event.
TParentBuilder With(Expression<Func<TEvent, TProperty>> eventPropertyAccessor)
Parameters
eventPropertyAccessorExpression<Func<TEvent, TProperty>>Event property accessor for defining the source property.
Returns
- TParentBuilder
Builder continuation.