C# Class CQRS_ES.Framework.SqlEventStore

Inheritance: IEventStore
显示文件 Open project: KHProjects/KH-Parker-Fox

Public Methods

Method Description
GetAllEventsEver ( ) : IEnumerable
LoadEvents ( object id, long version ) : IEnumerable
SqlEventStore ( MessageBus bus ) : System
StoreEvents ( object streamId, IEnumerable events, long expectedInitialVersion ) : void

Private Methods

Method Description
InsertEventsAndReturnLastVersion ( object streamId, SqlCeConnection connection, long nextVersion, string>.IEnumerable serializedEvents ) : long
StartNewSequence ( object streamId, long nextVersion, SqlCeConnection connection ) : void
UpdateSequence ( object streamId, long expectedInitialVersion, long nextVersion, SqlCeConnection connection ) : void

Method Details

GetAllEventsEver() public method

public GetAllEventsEver ( ) : IEnumerable
return IEnumerable

LoadEvents() public method

public LoadEvents ( object id, long version ) : IEnumerable
id object
version long
return IEnumerable

SqlEventStore() public method

public SqlEventStore ( MessageBus bus ) : System
bus MessageBus
return System

StoreEvents() public method

public StoreEvents ( object streamId, IEnumerable events, long expectedInitialVersion ) : void
streamId object
events IEnumerable
expectedInitialVersion long
return void