SqlProviderServices.CloneDbConnection(DbConnection, DbProviderFactory) 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.
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
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