C# Class CoreTechs.Common.Database.ConnectionScope

Opens the connection on construction if it's not already open. On disposal, the connection will be closed if it was closed before construction.
Inheritance: IDisposable
Afficher le fichier Open project: Core-Techs/Common

Méthodes publiques

Méthode Description
ConnectionScope ( IDbConnection connection ) : System
Dispose ( ) : void
Open ( ) : void
OpenAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Method Details

ConnectionScope() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Open() public méthode

public Open ( ) : void
Résultat void

OpenAsync() public méthode

public OpenAsync ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task