Table of Contents

Interface ICompositeKeyBuilder<TKeyType, TEvent>

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

Defines a builder for building a composite key with a specific type.

public interface ICompositeKeyBuilder<TKeyType, TEvent>

Type Parameters

TKeyType

Type of key to build.

TEvent

Event to build from.

Methods

Build()

Builds the composite key expression.

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.

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.