Interface IEventStoreEntity<TEventEntity>
The stored entity that contain/references all the events applied to a domain entity.
Namespace: Silverback.EventStore
Assembly: Silverback.EventSourcing.dll
Syntax
public interface IEventStoreEntity<TEventEntity> where TEventEntity : IEventEntity
Type Parameters
Name | Description |
---|---|
TEventEntity | The type of the related event entity that will be referenced. |
Properties
| Improve this doc View sourceEntityVersion
Gets or sets the version of the entity.
Declaration
int EntityVersion { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
In the default implementation this is a sequence that is increment every time a new event is applied.
Events
Gets the events that have been applied to the domain entity.
Declaration
ICollection<TEventEntity> Events { get; }
Property Value
Type | Description |
---|---|
ICollection<TEventEntity> |
Methods
| Improve this doc View sourceAddDomainEvents(IEnumerable<object>)
Adds the specified events.
Declaration
void AddDomainEvents(IEnumerable<object> events)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<object> | events | The events to be stored. |