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.
Properties
| Improve this doc View sourceDomainEvents
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.