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