Table of Contents

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
Object
Entity<TKey>
AggregateRoot<TKey>
Implements
IEntity<TKey>
IIdentity<TKey>
Inherited Members

Constructors

AggregateRoot(TKey)

Initializes a new instance of the AggregateRoot<TKey> class.

protected AggregateRoot(TKey id)

Parameters

id TKey

The identifier of the entity.

AggregateRoot(IMetadata)

Initializes a new instance of the AggregateRoot<TKey> class.

protected AggregateRoot(IMetadata metadata = null)

Parameters

metadata IMetadata

The optional metadata to merge with this instance.

See Also

Aggregate<TKey, TEvent>