Compartilhar via


DbProviderServices.CloneDbConnection Método

Definição

Sobrecargas

CloneDbConnection(DbConnection)

Clona a conexão.

CloneDbConnection(DbConnection, DbProviderFactory)

Clona a conexão.

CloneDbConnection(DbConnection)

Clona a conexão.

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

Parâmetros

connection
DbConnection

A conexão original.

Retornos

Conexão clonada

Aplica-se a

CloneDbConnection(DbConnection, DbProviderFactory)

Clona a conexão.

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

Parâmetros

connection
DbConnection

A conexão original.

factory
DbProviderFactory

A fábrica a ser usada.

Retornos

Conexão clonada

Aplica-se a