C# Class Habanero.DB.ManagedConnection

Facade to provide a cheap leasing effect on database connections for helping with concurrency
Inheritance: IDbConnection
Afficher le fichier Open project: Chillisoft/habanero

Méthodes publiques

Méthode Description
BeginTransaction ( ) : IDbTransaction

Begins a database transaction.

BeginTransaction ( IsolationLevel il ) : IDbTransaction

Begins a database transaction with the specified T:System.Data.IsolationLevel value.

ChangeDatabase ( string databaseName ) : void

Changes the current database for an open Connection object.

Close ( ) : void

Closes the connection to the database.

CreateCommand ( ) : IDbCommand

Creates and returns a Command object associated with the connection.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ManagedConnection ( IDbConnection connection ) : System

Wrap an IDbConnection object with the managed availablility wrapper.

Open ( ) : void

Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.

Method Details

BeginTransaction() public méthode

Begins a database transaction.
public BeginTransaction ( ) : IDbTransaction
Résultat IDbTransaction

BeginTransaction() public méthode

Begins a database transaction with the specified T:System.Data.IsolationLevel value.
public BeginTransaction ( IsolationLevel il ) : IDbTransaction
il IsolationLevel One of the values.
Résultat IDbTransaction

ChangeDatabase() public méthode

Changes the current database for an open Connection object.
public ChangeDatabase ( string databaseName ) : void
databaseName string The name of the database to use in place of the current database.
Résultat void

Close() public méthode

Closes the connection to the database.
public Close ( ) : void
Résultat void

CreateCommand() public méthode

Creates and returns a Command object associated with the connection.
public CreateCommand ( ) : IDbCommand
Résultat IDbCommand

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

ManagedConnection() public méthode

Wrap an IDbConnection object with the managed availablility wrapper.
This exception is thrown if the object to wrap is null.
public ManagedConnection ( IDbConnection connection ) : System
connection IDbConnection The to wrap
Résultat System

Open() public méthode

Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
public Open ( ) : void
Résultat void