Show / Hide Table of Contents

    Class DomainEntity

    The base class for the domain entities that encapsulate domain events.

    Inheritance
    object
    MessagesSource<IDomainEvent>
    DomainEntity
    Implements
    IMessagesSource
    Inherited Members
    MessagesSource<IDomainEvent>.GetMessages()
    MessagesSource<IDomainEvent>.ClearMessages()
    MessagesSource<IDomainEvent>.AddEvent(IDomainEvent)
    MessagesSource<IDomainEvent>.AddEvent<TEvent>(bool)
    MessagesSource<IDomainEvent>.RemoveEvent(IDomainEvent)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 source

    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.

    Implements

    IMessagesSource
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini