IAggregateRoot<TEvent> Interface
Definition
Defines an Event based contract of an Aggregate as specified in Domain Driven Design.
public interface IAggregateRoot<out TEvent> : IAggregateRoot, IMetadata
Type Parameters
TEventThe type of the event that implements the IDomainEvent interface.
- Inherited Members
- Extension Methods
Properties
| Name | Description |
|---|---|
| Events | Gets the events that was added to the Aggregate. |
Methods
| Name | Description |
|---|---|
| RemoveAllEvents() | Removes all events from the Aggregate. |