Interface IEventSeedingBuilder
Defines a builder for seeding events in the event store.
public interface IEventSeedingBuilder
Methods
ForEventSource(EventSourceId, IEnumerable<object>)
Seed events for a specific event source id with multiple event types. By default, seed data applies to all namespaces globally.
IEventSeedingBuilder ForEventSource(EventSourceId eventSourceId, IEnumerable<object> events)
Parameters
eventSourceIdEventSourceIdThe event source id to seed for.
eventsIEnumerable<object>Collection of events to seed.
Returns
- IEventSeedingBuilder
The builder for continuation.
ForNamespace(EventStoreNamespaceName)
Configure seed data to be specific to a namespace.
IEventSeedingScopeBuilder ForNamespace(EventStoreNamespaceName @namespace)
Parameters
namespaceEventStoreNamespaceNameThe namespace to seed for.
Returns
- IEventSeedingScopeBuilder
A scoped builder for namespace-specific seed data.
For<TEvent>(EventSourceId, IEnumerable<TEvent>)
Seed events for a specific event type and event source id. By default, seed data applies to all namespaces globally.
IEventSeedingBuilder For<TEvent>(EventSourceId eventSourceId, IEnumerable<TEvent> events) where TEvent : class
Parameters
eventSourceIdEventSourceIdThe event source id to seed for.
eventsIEnumerable<TEvent>Collection of events to seed.
Returns
- IEventSeedingBuilder
The builder for continuation.
Type Parameters
TEventType of event to seed.