Class DtoAggregateRoot<TAuthenticationToken, TDto>
An IAggregateRoot<TAuthenticationToken> for operating on IDto instances.
Inheritance
System.Object
AggregateRoot<TAuthenticationToken>
DtoAggregateRoot<TAuthenticationToken, TDto>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Domain
Assembly: Cqrs.dll
Syntax
public class DtoAggregateRoot<TAuthenticationToken, TDto> : AggregateRoot<TAuthenticationToken>, IAggregateRoot<TAuthenticationToken> where TDto : IDto
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of authentication token. |
TDto | The System.Type of IDto. |
Constructors
DtoAggregateRoot(Guid, TDto, TDto)
Instantiate a new instance of DtoAggregateRoot<TAuthenticationToken, TDto> and instantly apply the change as n DtoAggregateEvent<TAuthenticationToken, TDto>
Declaration
public DtoAggregateRoot(Guid id, TDto original, TDto new)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The identifier of the IDto. |
TDto | original | The original copy of the IDto. May be null for a Created operation. |
TDto | new | The new copy of the IDto. May be null for a Deleted operation. |