AggregateRoot Constructor
Definition
AggregateRoot(IMetadata)
Initializes a new instance of the AggregateRoot<TKey> class.
protected AggregateRoot(IMetadata metadata = null)
Parameters
metadataIMetadataThe optional metadata to merge with this instance.
AggregateRoot(TKey)
Initializes a new instance of the AggregateRoot<TKey> class.
protected AggregateRoot(TKey id)
Parameters
idTKeyThe identifier of the entity.