Class AggregateRoot<TKey>
Inheritance
System.Object
AggregateRoot<TKey>
Implements
IHasExtraProperties
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public abstract class AggregateRoot<TKey> : Entity<TKey>, IAggregateRoot<TKey>, IEntity<TKey>, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp
Type Parameters
Constructors
AggregateRoot()
Declaration
protected AggregateRoot()
AggregateRoot(TKey)
Declaration
protected AggregateRoot(TKey id)
Parameters
Type |
Name |
Description |
TKey |
id |
|
Properties
ConcurrencyStamp
Declaration
public virtual string ConcurrencyStamp { get; set; }
Property Value
Type |
Description |
System.String |
|
ExtraProperties
Declaration
public virtual Dictionary<string, object> ExtraProperties { get; protected set; }
Property Value
Type |
Description |
Dictionary<System.String, System.Object> |
|
Methods
AddDistributedEvent(Object)
Declaration
protected virtual void AddDistributedEvent(object eventData)
Parameters
Type |
Name |
Description |
System.Object |
eventData |
|
AddLocalEvent(Object)
Declaration
protected virtual void AddLocalEvent(object eventData)
Parameters
Type |
Name |
Description |
System.Object |
eventData |
|
ClearDistributedEvents()
Declaration
public virtual void ClearDistributedEvents()
ClearLocalEvents()
Declaration
public virtual void ClearLocalEvents()
GetDistributedEvents()
Declaration
public virtual IEnumerable<object> GetDistributedEvents()
Returns
Type |
Description |
IEnumerable<System.Object> |
|
GetLocalEvents()
Declaration
public virtual IEnumerable<object> GetLocalEvents()
Returns
Type |
Description |
IEnumerable<System.Object> |
|
Validate(ValidationContext)
Declaration
public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type |
Name |
Description |
ValidationContext |
validationContext |
|
Returns
Type |
Description |
IEnumerable<ValidationResult> |
|
Implements
IHasExtraProperties
Extension Methods