Table of Contents

Class CompositeKeyBuilder<TKeyType, TEvent>

Namespace
Cratis.Chronicle.Projections
Assembly
Cratis.Chronicle.dll

Represents an implementation of ICompositeKeyBuilder<TKeyType, TEvent>.

public class CompositeKeyBuilder<TKeyType, TEvent> : ICompositeKeyBuilder<TKeyType, TEvent>

Type Parameters

TKeyType

Type of key to build.

TEvent

Event to build from.

Inheritance
CompositeKeyBuilder<TKeyType, TEvent>
Implements
ICompositeKeyBuilder<TKeyType, TEvent>
Inherited Members

Methods

Build()

Builds the composite key expression.

public PropertyExpression Build()

Returns

PropertyExpression

PropertyExpression representing the composite key.

Set<TProperty>(Expression<Func<TKeyType, TProperty>>)

Start building the set operation to a target property on the model.

public ISetBuilder<TKeyType, TEvent, TProperty, ICompositeKeyBuilder<TKeyType, TEvent>> Set<TProperty>(Expression<Func<TKeyType, TProperty>> modelPropertyAccessor)

Parameters

modelPropertyAccessor Expression<Func<TKeyType, TProperty>>

Model property accessor for defining the target property.

Returns

ISetBuilder<TKeyType, TEvent, TProperty, ICompositeKeyBuilder<TKeyType, TEvent>>

Builder continuation.

Type Parameters

TProperty

Type of the property.