Class AggregateRoot<TKey>
- Namespace
- Savvyio.Domain
- Assembly
- Savvyio.Domain.dll
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
TKey
The type of the key that uniquely identifies this aggregate.
- Inheritance
-
ObjectEntity<TKey>Aggregate<TKey, IDomainEvent>AggregateRoot<TKey>
- Implements
-
IAggregateRoot<IDomainEvent, TKey>IEntity<TKey>IIdentity<TKey>
- Inherited Members
Constructors
AggregateRoot(TKey)
Initializes a new instance of the AggregateRoot<TKey> class.
protected AggregateRoot(TKey id)
Parameters
id
TKeyThe identifier of the entity.
AggregateRoot(IMetadata)
Initializes a new instance of the AggregateRoot<TKey> class.
protected AggregateRoot(IMetadata metadata = null)
Parameters
metadata
IMetadataThe optional metadata to merge with this instance.
See Also
Aggregate<TKey, TEvent>