C# Class Ncqrs.Eventing.Storage.SQLite.SQLiteEventStore

Inheritance: IEventStore
Afficher le fichier Open project: SzymonPobiega/ncqrs

Méthodes publiques

Méthode Description
EnsureDatabaseExists ( string connectionString ) : void
GetAllEvents ( System.Guid id ) : IEnumerable
GetAllEventsSinceVersion ( System.Guid id, long version ) : IEnumerable
SQLiteEventStore ( string connectionString ) : System
SQLiteEventStore ( string connectionString, IPropertyBagConverter converter ) : System
Save ( IEventSource source ) : void

Private Methods

Méthode Description
AddEventSource ( IEventSource eventSource, System.Data.SQLite.SQLiteTransaction transaction ) : void
GetVersion ( System.Guid providerId, System.Data.SQLite.SQLiteTransaction transaction ) : int?
SaveEvent ( SourcedEvent evnt, System.Guid eventSourceId, System.Data.SQLite.SQLiteTransaction transaction ) : void
SaveEvents ( IEnumerable evnts, System.Guid eventSourceId, System.Data.SQLite.SQLiteTransaction transaction ) : void
UpdateEventSourceVersion ( IEventSource eventSource, System.Data.SQLite.SQLiteTransaction transaction ) : void

Method Details

EnsureDatabaseExists() public static méthode

public static EnsureDatabaseExists ( string connectionString ) : void
connectionString string
Résultat void

GetAllEvents() public méthode

public GetAllEvents ( System.Guid id ) : IEnumerable
id System.Guid
Résultat IEnumerable

GetAllEventsSinceVersion() public méthode

public GetAllEventsSinceVersion ( System.Guid id, long version ) : IEnumerable
id System.Guid
version long
Résultat IEnumerable

SQLiteEventStore() public méthode

public SQLiteEventStore ( string connectionString ) : System
connectionString string
Résultat System

SQLiteEventStore() public méthode

public SQLiteEventStore ( string connectionString, IPropertyBagConverter converter ) : System
connectionString string
converter IPropertyBagConverter
Résultat System

Save() public méthode

public Save ( IEventSource source ) : void
source IEventSource
Résultat void