Show / Hide Table of Contents

    Interface IEventSourcingDomainEntity

    A domain entity that is persisted in the event store.

    Namespace: Silverback.EventStore
    Assembly: Silverback.EventSourcing.dll
    Syntax
    public interface IEventSourcingDomainEntity

    Methods

    | Improve this doc View source

    GetNewEvents()

    Returns the new events that have to be persisted.

    Declaration
    IEnumerable<IEntityEvent> GetNewEvents()
    Returns
    Type Description
    IEnumerable<IEntityEvent>

    The new events to be persisted.

    | Improve this doc View source

    GetVersion()

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

    Declaration
    int GetVersion()
    Returns
    Type Description
    int

    The entity version.

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