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
namingPolicyINamingPolicyThe 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
Methods
Properties(Action<IEventMigrationPropertyBuilder>)
Define property migrations.
public void Properties(Action<IEventMigrationPropertyBuilder> properties)
Parameters
propertiesAction<IEventMigrationPropertyBuilder>Action to configure properties.
ToJson()
Convert the builder to a JSON object.
public JsonObject ToJson()
Returns
- JsonObject
The JsonObject representation.