Table of Contents

Class SubtractBuilder<TReadModel, TEvent, TProperty, TParentBuilder>

Namespace
Cratis.Chronicle.Projections
Assembly
Cratis.Chronicle.dll
public class SubtractBuilder<TReadModel, TEvent, TProperty, TParentBuilder> : ISubtractBuilder<TReadModel, TEvent, TProperty, TParentBuilder>, IPropertyExpressionBuilder where TParentBuilder : class, IReadModelPropertiesBuilder<TReadModel, TEvent, TParentBuilder>

Type Parameters

TReadModel

Read model to build for.

TEvent

Event to build for.

TProperty

The type of the property we're targeting.

TParentBuilder

Type of the parent builder.

Inheritance
SubtractBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
Implements
ISubtractBuilder<TReadModel, TEvent, TProperty, TParentBuilder>
Inherited Members

Constructors

SubtractBuilder(TParentBuilder, PropertyPath, INamingPolicy)

public SubtractBuilder(TParentBuilder parent, PropertyPath targetProperty, INamingPolicy namingPolicy)

Parameters

parent TParentBuilder

Parent builder.

targetProperty PropertyPath

Target property we're building for.

namingPolicy INamingPolicy

The 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

eventPropertyAccessor Expression<Func<TEvent, TProperty>>

Event property accessor for defining the source property.

Returns

TParentBuilder

Builder continuation.