Share via


SqlProviderServices.CloneDbConnection(DbConnection, DbProviderFactory) Method

Definition

Clones the connection.

public override System.Data.Common.DbConnection CloneDbConnection (System.Data.Common.DbConnection connection, System.Data.Common.DbProviderFactory factory);
override this.CloneDbConnection : System.Data.Common.DbConnection * System.Data.Common.DbProviderFactory -> System.Data.Common.DbConnection
Public Overrides Function CloneDbConnection (connection As DbConnection, factory As DbProviderFactory) As DbConnection

Parameters

connection
DbConnection

The original connection.

factory
DbProviderFactory

The factory to use.

Returns

Cloned connection

Applies to