C# Class Composable.CQRS.EventSourcing.MicrosoftSQLServer.SqlServerEventStoreEventTypeToIdMapper

Inheritance: IEventTypeToIdMapper
Show file Open project: mlidbom/Composable.Monolithic Class Usage Examples

Public Methods

Method Description
GetId ( Type type ) : int
GetType ( int id ) : Type
SqlServerEventStoreEventTypeToIdMapper ( string connectionString, IEventNameMapper nameMapper ) : System

Private Methods

Method Description
EnsureInitialized ( ) : void
GetTypes ( ) : IEnumerable
InsertNewType ( Type newType ) : IdTypeMapping
LoadTypesFromDatabase ( ) : void

Method Details

GetId() public method

public GetId ( Type type ) : int
type System.Type
return int

GetType() public method

public GetType ( int id ) : Type
id int
return System.Type

SqlServerEventStoreEventTypeToIdMapper() public method

public SqlServerEventStoreEventTypeToIdMapper ( string connectionString, IEventNameMapper nameMapper ) : System
connectionString string
nameMapper IEventNameMapper
return System