Show / Hide Table of Contents

Interface IConnectionManager

Interface to eConnectionManager

Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IConnectionManager

Methods

GetConnectionContext(ConnectionInformationBase)

Gets the connection context.

Declaration
ConnectionContextBase GetConnectionContext(ConnectionInformationBase connectionInformation)
Parameters
Type Name Description
ConnectionInformationBase connectionInformation

The connection information.

Returns
Type Description
ConnectionContextBase

Returns connection context

GetDatabaseConnections(Boolean)

Gets the database connections

Declaration
IEnumerable<DatabaseConnection> GetDatabaseConnections(bool forceReloadFromFile = false)
Parameters
Type Name Description
System.Boolean forceReloadFromFile
Returns
Type Description
System.Collections.Generic.IEnumerable<DatabaseConnection>

List of Database connections

GetDataSource(String)

Get the data source

Declaration
string GetDataSource(string connectionString)
Parameters
Type Name Description
System.String connectionString
Returns
Type Description
System.String

GetDbEngine(String)

Get the DbEngine

Declaration
DbEngine GetDbEngine(string connectionString)
Parameters
Type Name Description
System.String connectionString
Returns
Type Description
DbEngine

GetRootPathForConnectionString(String)

Gets the root path.

Declaration
string GetRootPathForConnectionString(string connectionString)
Parameters
Type Name Description
System.String connectionString

The connection string.

Returns
Type Description
System.String

GetSqliteSessionIndexingCacheConnection()

Gets the sqlite session indexing cache connection.

Declaration
DatabaseConnection GetSqliteSessionIndexingCacheConnection()
Returns
Type Description
DatabaseConnection

LoadSqlRaceConnections()

Loads the SQL race connections.

Declaration
IEnumerable<ConnectionBase> LoadSqlRaceConnections()
Returns
Type Description
System.Collections.Generic.IEnumerable<ConnectionBase>

SaveConnections()

Saves the DB Connections.

Declaration
void SaveConnections()

UpdateConnectionsList(IList<DatabaseConnection>)

Updates the connections list.

Declaration
void UpdateConnectionsList(IList<DatabaseConnection> loadedConnections)
Parameters
Type Name Description
System.Collections.Generic.IList<DatabaseConnection> loadedConnections

The loaded connections.

Back to top Generated by DocFX