Class DomainEntity
The base class for the domain entities that encapsulate domain events.
Implements
Inherited Members
Namespace: Silverback.Domain
Assembly: Silverback.Core.Model.dll
Syntax
public abstract class DomainEntity : MessagesSource<IDomainEvent>, IMessagesSource
Remarks
It's not mandatory to use this base class as long as long as the domain entities implement the IMessagesSource interface.
Constructors
DomainEntity()
The base class for the domain entities that encapsulate domain events.
Declaration
protected DomainEntity()
Remarks
It's not mandatory to use this base class as long as long as the domain entities implement the IMessagesSource interface.
Properties
DomainEvents
Gets the domain events that have been added but not yet published.
Declaration
[NotMapped]
public IEnumerable<IDomainEvent> DomainEvents { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IDomainEvent> |
Remarks
It's not mandatory to use this base class as long as long as the domain entities implement the IMessagesSource interface.