Class DomainEntity
The base class for the domain entities that encapsulate domain events.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.Collections.Generic.IEnumerable<IDomainEvent> |