C# Class CoreTechs.Common.Database.DisconnectionScope

Closes the connection on construction if it's not already closed. On disposal, the connection will be opened if it was open before construction.
Inheritance: IDisposable
Datei anzeigen Open project: Core-Techs/Common

Public Methods

Method Description
DisconnectionScope ( IDbConnection connection ) : System
Dispose ( ) : void

Method Details

DisconnectionScope() public method

public DisconnectionScope ( IDbConnection connection ) : System
connection IDbConnection
return System

Dispose() public method

public Dispose ( ) : void
return void