Share via


Database.OldConnectionWrapper Class

This is a helper class that is used to manage the lifetime of a connection for various Execute methods. We needed this class to support implicit transactions created with the TransactionScope class. In this case, the various Execute methods need to use a shared connection instead of a new connection for each request in order to prevent a distributed transaction.

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

Syntax

'Declaration
Protected Class OldConnectionWrapper _
    Implements IDisposable
protected class OldConnectionWrapper : IDisposable
protected ref class OldConnectionWrapper : IDisposable
protected class OldConnectionWrapper implements IDisposable

Inheritance Hierarchy

System.Object
  Microsoft.Practices.EnterpriseLibrary.Data.Database.OldConnectionWrapper

See Also

Database.OldConnectionWrapper Members

Microsoft.Practices.EnterpriseLibrary.Data Namespace