Database.ConnectionWrapper Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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
ProtectedClassConnectionWrapper _
    Implements IDisposable
protectedclassConnectionWrapper : IDisposable
protectedref classConnectionWrapper : IDisposable
protectedclass ConnectionWrapper implements IDisposable

Inheritance Hierarchy

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

See Also

Database.ConnectionWrapper Members

Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.