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.  
 More...
 | 
|   | OldConnectionWrapper (DbConnection connection, bool disposeConnection) | 
|   | Create a new "lifetime" container for a DbConnection instance.  More...
  | 
|   | 
| void  | Dispose () | 
|   | Dispose the wrapped connection, if appropriate.  More...
  | 
|   | 
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. 
 
◆ OldConnectionWrapper()
      
        
          | Microsoft.Practices.EnterpriseLibrary.Data.Database.OldConnectionWrapper.OldConnectionWrapper  | 
          ( | 
          DbConnection  | 
          connection,  | 
        
        
           | 
           | 
          bool  | 
          disposeConnection  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Create a new "lifetime" container for a DbConnection instance. 
- Parameters
 - 
  
    | connection | The connection | 
    | disposeConnection | Whether or not to dispose of the connection when this class is disposed.  | 
  
   
 
 
◆ Dispose()
      
        
          | void Microsoft.Practices.EnterpriseLibrary.Data.Database.OldConnectionWrapper.Dispose  | 
          ( | 
           | ) | 
           | 
        
      
 
Dispose the wrapped connection, if appropriate. 
 
 
◆ Connection
  
  
      
        
          | DbConnection Microsoft.Practices.EnterpriseLibrary.Data.Database.OldConnectionWrapper.Connection | 
         
       
   | 
  
get   | 
  
 
Gets the actual connection. 
 
 
The documentation for this class was generated from the following file: