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
Afficher le fichier Open project: Core-Techs/Common

Méthodes publiques

Méthode Description
DisconnectionScope ( IDbConnection connection ) : System
Dispose ( ) : void

Method Details

DisconnectionScope() public méthode

public DisconnectionScope ( IDbConnection connection ) : System
connection IDbConnection
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void