Share via


DatabaseConnectionWrapper Class

This is a small helper class used to manage closing a connection in the presence of transaction pooling. We can't actually close the connection until everyone using it is done, thus, we need reference counting.

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

Syntax

'Declaration
Public Class DatabaseConnectionWrapper _
    Implements IDisposable
public class DatabaseConnectionWrapper : IDisposable
public ref class DatabaseConnectionWrapper : IDisposable
public class DatabaseConnectionWrapper implements IDisposable

Remarks

User code should not use this class directly - it's used internally by the authors of DAAB providers to manage connections when using the DAAB methods.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConnectionWrapper

See Also

DatabaseConnectionWrapper Members

Microsoft.Practices.EnterpriseLibrary.Data Namespace