Class EventMigrationBuilder

Namespace
Cratis.Chronicle.Events.Migrations
Assembly
Cratis.Chronicle.dll

Represents an implementation of IEventMigrationBuilder.

public class EventMigrationBuilder : IEventMigrationBuilder
Inheritance
EventMigrationBuilder
Implements
Inherited Members
Extension Methods

Constructors

EventMigrationBuilder()

Initializes a new instance of EventMigrationBuilder using the default naming policy.

public EventMigrationBuilder()

EventMigrationBuilder(INamingPolicy?)

Represents an implementation of IEventMigrationBuilder.

public EventMigrationBuilder(INamingPolicy? namingPolicy)

Parameters

namingPolicy INamingPolicy

The naming policy for typed property accessors. Raw JSON paths are never renamed. Defaults to DefaultNamingPolicy.

Properties

PropertyBuilders

Gets all the property builders.

public IReadOnlyList<EventMigrationPropertyBuilder> PropertyBuilders { get; }

Property Value

IReadOnlyList<EventMigrationPropertyBuilder>

Methods

Properties(Action<IEventMigrationPropertyBuilder>)

Define property migrations.

public void Properties(Action<IEventMigrationPropertyBuilder> properties)

Parameters

properties Action<IEventMigrationPropertyBuilder>

Action to configure properties.

ToJson()

Convert the builder to a JSON object.

public JsonObject ToJson()

Returns

JsonObject

The JsonObject representation.