Show / Hide Table of Contents

    Class EventSourcingDomainEntity<TKey>

    The base class for the domain entities that are persisted in the event store.

    Inheritance
    object
    MessagesSource<object>
    EventSourcingDomainEntity<TKey, object>
    EventSourcingDomainEntity<TKey>
    Implements
    IMessagesSource
    IEventSourcingDomainEntity<TKey>
    IEventSourcingDomainEntity
    Inherited Members
    EventSourcingDomainEntity<TKey, object>.DomainEvents
    EventSourcingDomainEntity<TKey, object>.Events
    EventSourcingDomainEntity<TKey, object>.Id
    EventSourcingDomainEntity<TKey, object>.GetVersion()
    EventSourcingDomainEntity<TKey, object>.GetNewEvents()
    EventSourcingDomainEntity<TKey, object>.AddAndApplyEvent(IEntityEvent)
    MessagesSource<object>.GetMessages()
    MessagesSource<object>.ClearMessages()
    MessagesSource<object>.AddEvent(object)
    MessagesSource<object>.AddEvent<TEvent>(bool)
    MessagesSource<object>.RemoveEvent(object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Domain
    Assembly: Silverback.EventSourcing.dll
    Syntax
    public abstract class EventSourcingDomainEntity<TKey> : EventSourcingDomainEntity<TKey, object>, IMessagesSource, IEventSourcingDomainEntity<TKey>, IEventSourcingDomainEntity
    Type Parameters
    Name Description
    TKey

    The type of the entity key.

    Remarks

    It's not mandatory to use this base class as long as long as the domain entities implement the IEventSourcingDomainEntity<TKey> interface.

    Constructors

    | Improve this doc View source

    EventSourcingDomainEntity()

    Initializes a new instance of the EventSourcingDomainEntity<TKey> class.

    Declaration
    protected EventSourcingDomainEntity()
    Remarks

    It's not mandatory to use this base class as long as long as the domain entities implement the IEventSourcingDomainEntity<TKey> interface.

    | Improve this doc View source

    EventSourcingDomainEntity(IReadOnlyCollection<IEntityEvent>)

    Initializes a new instance of the EventSourcingDomainEntity<TKey> class from the stored events.

    Declaration
    protected EventSourcingDomainEntity(IReadOnlyCollection<IEntityEvent> events)
    Parameters
    Type Name Description
    IReadOnlyCollection<IEntityEvent> events

    The stored events to be re-applied to rebuild the entity state.

    Remarks

    It's not mandatory to use this base class as long as long as the domain entities implement the IEventSourcingDomainEntity<TKey> interface.

    Implements

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