Share via


DbProviderServices.CloneDbConnection Method

Definition

Overloads

CloneDbConnection(DbConnection)

Clones the connection.

CloneDbConnection(DbConnection, DbProviderFactory)

Clones the connection.

CloneDbConnection(DbConnection)

Clones the connection.

public virtual System.Data.Common.DbConnection CloneDbConnection (System.Data.Common.DbConnection connection);
abstract member CloneDbConnection : System.Data.Common.DbConnection -> System.Data.Common.DbConnection
override this.CloneDbConnection : System.Data.Common.DbConnection -> System.Data.Common.DbConnection
Public Overridable Function CloneDbConnection (connection As DbConnection) As DbConnection

Parameters

connection
DbConnection

The original connection.

Returns

Cloned connection

Applies to

CloneDbConnection(DbConnection, DbProviderFactory)

Clones the connection.

public virtual System.Data.Common.DbConnection CloneDbConnection (System.Data.Common.DbConnection connection, System.Data.Common.DbProviderFactory factory);
abstract member CloneDbConnection : System.Data.Common.DbConnection * System.Data.Common.DbProviderFactory -> System.Data.Common.DbConnection
override this.CloneDbConnection : System.Data.Common.DbConnection * System.Data.Common.DbProviderFactory -> System.Data.Common.DbConnection
Public Overridable 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