Class NestedBuilder<TParentReadModel, TNestedReadModel>

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

Represents an implementation of INestedBuilder<TParentReadModel, TNestedReadModel>.

public class NestedBuilder<TParentReadModel, TNestedReadModel> : ProjectionBuilder<TNestedReadModel, INestedBuilder<TParentReadModel, TNestedReadModel>>, INestedBuilder<TParentReadModel, TNestedReadModel>, IProjectionBuilder<TNestedReadModel, INestedBuilder<TParentReadModel, TNestedReadModel>>

Type Parameters

TParentReadModel

Parent read model type.

TNestedReadModel

Nested read model type.

Inheritance
ProjectionBuilder<TNestedReadModel, INestedBuilder<TParentReadModel, TNestedReadModel>>
NestedBuilder<TParentReadModel, TNestedReadModel>
Implements
INestedBuilder<TParentReadModel, TNestedReadModel>
IProjectionBuilder<TNestedReadModel, INestedBuilder<TParentReadModel, TNestedReadModel>>
Inherited Members
Extension Methods

Constructors

NestedBuilder(INamingPolicy, IEventTypes, JsonSerializerOptions, AutoMap)

Represents an implementation of INestedBuilder<TParentReadModel, TNestedReadModel>.

public NestedBuilder(INamingPolicy namingPolicy, IEventTypes eventTypes, JsonSerializerOptions jsonSerializerOptions, AutoMap autoMap)

Parameters

namingPolicy INamingPolicy

The INamingPolicy to use for converting names during serialization.

eventTypes IEventTypes

IEventTypes for providing event type information.

jsonSerializerOptions JsonSerializerOptions

The JsonSerializerOptions to use for any JSON serialization.

autoMap AutoMap

AutoMap behavior for properties - inherits from parent by default.

Methods

ClearWith<TEvent>()

Defines what event clears (sets to null) the nested object.

public INestedBuilder<TParentReadModel, TNestedReadModel> ClearWith<TEvent>()

Returns

INestedBuilder<TParentReadModel, TNestedReadModel>

Builder continuation.

Type Parameters

TEvent

Type of event.