Class AggregateRoot
Inheritance
System.Object
AggregateRoot
Implements
IHasExtraProperties
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public abstract class AggregateRoot : Entity, IAggregateRoot, IEntity, IGeneratesDomainEvents, IHasExtraProperties, IHasConcurrencyStamp
Constructors
AggregateRoot()
Declaration
protected AggregateRoot()
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