DbProviderServices.CloneDbConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework