Database.OldConnectionWrapper Constructor
Collapse the table of content
Expand the table of content

Database.OldConnectionWrapper Constructor

Create a new "lifetime" container for a DbConnection instance.

Namespace: Microsoft.Practices.EnterpriseLibrary.Data
Assembly: Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll) Version: 6.0.0.0 (6.0.1304.0)

public OldConnectionWrapper(
	DbConnection connection,
	bool disposeConnection
)

Parameters

connection
Type: System.Data.Common.DbConnection
The connection
disposeConnection
Type: System.Boolean
Whether or not to dispose of the connection when this class is disposed.
Show:
© 2016 Microsoft