Show / Hide Table of Contents

    Class EventStoreEntity<TEventEntity>

    The stored entity that contain/references all the events applied to a domain entity.

    Inheritance
    object
    MessagesSource<object>
    EventStoreEntity<TEventEntity>
    Implements
    IMessagesSource
    IEventStoreEntity<TEventEntity>
    Inherited Members
    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.EventStore
    Assembly: Silverback.EventSourcing.dll
    Syntax
    public class EventStoreEntity<TEventEntity> : MessagesSource<object>, IMessagesSource, IEventStoreEntity<TEventEntity> where TEventEntity : IEventEntity
    Type Parameters
    Name Description
    TEventEntity

    The type of the related event entity that will be referenced.

    Properties

    | Improve this doc View source

    EntityVersion

    Gets or sets the version of the entity.

    Declaration
    public int EntityVersion { get; set; }
    Property Value
    Type Description
    int
    Remarks

    In the default implementation this is a sequence that is increment every time a new event is applied.

    | Improve this doc View source

    Events

    Gets the events that have been applied to the domain entity.

    Declaration
    public ICollection<TEventEntity> Events { get; }
    Property Value
    Type Description
    ICollection<TEventEntity>

    Methods

    | Improve this doc View source

    AddDomainEvents(IEnumerable<object>)

    Adds the specified events.

    Declaration
    public void AddDomainEvents(IEnumerable<object> events)
    Parameters
    Type Name Description
    IEnumerable<object> events

    The events to be stored.

    Implements

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