AggregateRootService<TAggregateRoot, TAggregate> Class
Namespace: PTS.DomainFramework.Common
Assembly: PTS.DomainFramework.Domain.dll
Service with accessor to aggregate root and aggregate repositories.
Syntax
public abstract class AggregateRootService<TAggregateRoot, TAggregate> : UnitOfWorkService, IServiceProviderAccessor where TAggregateRoot : class where TAggregate : class
Type Parameters
Name | Description |
---|---|
TAggregateRoot | Type of primary aggregate root entity. |
TAggregate | Type of aggregate entity. |
Inheritance
System.Object
AggregateRootService<TAggregateRoot, TAggregate>
Implements
Constructors
AggregateRootService(IUnitOfWork)
Declaration
public AggregateRootService(IUnitOfWork data)
Parameters
Type | Name | Description |
---|---|---|
IUnitOfWork | data |
Properties
AggregateRoot
Declaration
protected IRepository<TAggregateRoot> AggregateRoot { get; }
Property Value
Type | Description |
---|---|
IRepository<TAggregateRoot> |
Aggregates
Declaration
protected IRepository<TAggregate> Aggregates { get; }
Property Value
Type | Description |
---|---|
IRepository<TAggregate> |
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()