ConnectionManagerCreator

Class ConnectionManagerCreator

Creates an ETLBox IConnectionManager object based on the type of the IDbConnection. This connects the classic ADO.NET connection with the ETLBox connection manager approach.

Inheritance
ConnectionManagerCreator
Namespace: ETLBox.DbExtensions
Assembly: ETLBox.DbExtensions.dll
Syntax
    public static class ConnectionManagerCreator

Properties

ConnectionManagerMappings

Declaration
    public static Dictionary<string, string> ConnectionManagerMappings { get; set; }
Property Value
TypeDescription
Dictionary<string, string>

Methods

CreateFromIDbConnection(IDbConnection)

Creates an ETLBox connection manager instance from the given IDbConnection. Make sure you have the appropiate ETLBox extension (e.g., ETLBox.MySql) referenced that matches with your used ADO.NET connection.

Declaration
    public static IConnectionManager CreateFromIDbConnection(IDbConnection connection)
Parameters
TypeNameDescription
IDbConnectionconnection

The ADO.NET connection instance

Returns
TypeDescription
IConnectionManager

An ETLBox Connection Manager

Exceptions
TypeCondition
ETLBoxException

Thrown if no ETLBox connection was found, or if the corresponding ETLBox Connection package was not referenced