Interface IJoinBuilder<TModel, TEvent>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Defines the builder for building join expressions for relationships.
public interface IJoinBuilder<TModel, TEvent> : IModelPropertiesBuilder<TModel, TEvent, IJoinBuilder<TModel, TEvent>>
Type Parameters
TModel
Model to build for.
TEvent
Event to build for.
- Inherited Members
Methods
On<TProperty>(Expression<Func<TModel, TProperty>>)
Sets the property that defines the relationship from the models perspective.
IJoinBuilder<TModel, TEvent> On<TProperty>(Expression<Func<TModel, TProperty>> keyAccessor)
Parameters
keyAccessor
Expression<Func<TModel, TProperty>>Accessor for the property to use.
Returns
- IJoinBuilder<TModel, TEvent>
Builder continuation.
Type Parameters
TProperty
Type of the property.