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
TParentReadModelParent read model type.
TNestedReadModelNested 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
namingPolicyINamingPolicyThe INamingPolicy to use for converting names during serialization.
eventTypesIEventTypesIEventTypes for providing event type information.
jsonSerializerOptionsJsonSerializerOptionsThe JsonSerializerOptions to use for any JSON serialization.
autoMapAutoMapAutoMap 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
TEventType of event.