Class EventStoreEntity<TEventEntity>
The stored entity that contain/references all the events applied to a domain entity.
Inherited Members
Namespace: Silverback.EventStore
Assembly: Silverback.EventSourcing.dll
Syntax
public class EventStoreEntity<TEventEntity> : MessagesSource<object>, IMessagesSource, 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
public 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
public ICollection<TEventEntity> Events { get; }
Property Value
Type | Description |
---|---|
ICollection<TEventEntity> |
Methods
| Improve this doc View sourceAddDomainEvents(IEnumerable<object>)
Adds the specified events.
Declaration
public void AddDomainEvents(IEnumerable<object> events)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<object> | events | The events to be stored. |