C# 클래스 Ncqrs.Eventing.Storage.SQL.MsSqlServerEventStore

Stores events for a SQL database.
상속: IEventStore, ISnapshotStore
파일 보기 프로젝트 열기: SzymonPobiega/ncqrs 1 사용 예제들

공개 메소드들

메소드 설명
GetAllEvents ( System.Guid id ) : IEnumerable

Get all event for a specific event provider.

GetAllEventsSinceVersion ( System.Guid id, long version ) : IEnumerable

Get all events provided by an specified event source.

GetAllIdsForType ( Type eventProviderType ) : IEnumerable
GetSnapshot ( System.Guid eventSourceId ) : ISnapshot

Gets a snapshot of a particular event source, if one exists. Otherwise, returns null.

GetTableCreationQueries ( ) : IEnumerable

Gets the table creation queries that can be used to create the tables that are needed for a database that is used as an event store.

This returns the content of the TableCreationScript.sql that is embedded as resource.

MsSqlServerEventStore ( String connectionString ) : System
MsSqlServerEventStore ( String connectionString, IPropertyBagConverter converter = null ) : System
RemoveUnusedProviders ( ) : void
Save ( IEventSource eventSource ) : void

Saves all events from an event provider.

SaveShapshot ( ISnapshot snapshot ) : void

Saves a snapshot of the specified event source.

비공개 메소드들

메소드 설명
AddEventSource ( IEventSource eventSource, SqlTransaction transaction ) : void

Adds the event source to the event store.

GetVersion ( System.Guid providerId, SqlTransaction transaction ) : int?

Gets the version of the provider from the event store.

SaveEvent ( ISourcedEvent evnt, SqlTransaction transaction ) : void

Saves the event to the data store.

SaveEvents ( IEnumerable evnts, SqlTransaction transaction ) : void

Saves the events to the event store.

ToBinary ( object obj ) : byte[]
UpdateEventSourceVersion ( IEventSource eventSource, SqlTransaction transaction ) : void

메소드 상세

GetAllEvents() 공개 메소드

Get all event for a specific event provider.
public GetAllEvents ( System.Guid id ) : IEnumerable
id System.Guid The id of the event provider.
리턴 IEnumerable

GetAllEventsSinceVersion() 공개 메소드

Get all events provided by an specified event source.
public GetAllEventsSinceVersion ( System.Guid id, long version ) : IEnumerable
id System.Guid
version long
리턴 IEnumerable

GetAllIdsForType() 공개 메소드

public GetAllIdsForType ( Type eventProviderType ) : IEnumerable
eventProviderType System.Type
리턴 IEnumerable

GetSnapshot() 공개 메소드

Gets a snapshot of a particular event source, if one exists. Otherwise, returns null.
public GetSnapshot ( System.Guid eventSourceId ) : ISnapshot
eventSourceId System.Guid
리턴 ISnapshot

GetTableCreationQueries() 공개 정적인 메소드

Gets the table creation queries that can be used to create the tables that are needed for a database that is used as an event store.
This returns the content of the TableCreationScript.sql that is embedded as resource.
public static GetTableCreationQueries ( ) : IEnumerable
리턴 IEnumerable

MsSqlServerEventStore() 공개 메소드

public MsSqlServerEventStore ( String connectionString ) : System
connectionString String
리턴 System

MsSqlServerEventStore() 공개 메소드

public MsSqlServerEventStore ( String connectionString, IPropertyBagConverter converter = null ) : System
connectionString String
converter IPropertyBagConverter
리턴 System

RemoveUnusedProviders() 공개 메소드

public RemoveUnusedProviders ( ) : void
리턴 void

Save() 공개 메소드

Saves all events from an event provider.
public Save ( IEventSource eventSource ) : void
eventSource IEventSource
리턴 void

SaveShapshot() 공개 메소드

Saves a snapshot of the specified event source.
public SaveShapshot ( ISnapshot snapshot ) : void
snapshot ISnapshot
리턴 void