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.
Inherited Members
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
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IDbConnection | connection | The ADO.NET connection instance |
Returns
Type | Description |
---|---|
IConnectionManager | An ETLBox Connection Manager |
Exceptions
Type | Condition |
---|---|
ETLBoxException | Thrown if no ETLBox connection was found, or if the corresponding ETLBox Connection package was not referenced |