Interface IEventSourcingDomainEntity
A domain entity that is persisted in the event store.
Namespace: Silverback.EventStore
Assembly: Silverback.EventSourcing.dll
Syntax
public interface IEventSourcingDomainEntity
Methods
| Improve this doc View sourceGetNewEvents()
Returns the new events that have to be persisted.
Declaration
IEnumerable<IEntityEvent> GetNewEvents()
Returns
Type | Description |
---|---|
IEnumerable<IEntityEvent> | The new events to be persisted. |
GetVersion()
Returns the version of the entity. In the default implementation this is a sequence that is increment every time a new event is applied.
Declaration
int GetVersion()
Returns
Type | Description |
---|---|
int | The entity version. |