AggregateRoot<TKey> Class
Definition
Provides a way to cover the pattern of an Aggregate Root as specified in Domain Driven Design. This is an abstract class.
public abstract class AggregateRoot<TKey> : Aggregate<TKey, IDomainEvent>, IAggregateRoot<IDomainEvent, TKey>, IAggregateRoot<IDomainEvent>, IAggregateRoot, IMetadata, IEntity<TKey>, IIdentity<TKey>
Type Parameters
TKeyThe type of the key that uniquely identifies this aggregate.
- Inheritance
-
Entity<TKey>Aggregate<TKey, IDomainEvent>AggregateRoot<TKey>
- Implements
-
IAggregateRoot<IDomainEvent, TKey>IEntity<TKey>IIdentity<TKey>
- Inherited Members
- Extension Methods
Constructors
| Name | Description |
|---|---|
| AggregateRoot(IMetadata) | Initializes a new instance of the AggregateRoot<TKey> class. |
| AggregateRoot(TKey) | Initializes a new instance of the AggregateRoot<TKey> class. |
See Also
Aggregate<TKey, TEvent>