Show / Hide Table of Contents

    Interface IEventStoreEntity<TEventEntity>

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

    Namespace: Silverback.EventStore
    Assembly: Silverback.EventSourcing.dll
    Syntax
    public interface 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
    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
    ICollection<TEventEntity> Events { get; }
    Property Value
    Type Description
    ICollection<TEventEntity>

    Methods

    | Improve this doc View source

    AddDomainEvents(IEnumerable<object>)

    Adds the specified events.

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

    The events to be stored.

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