C# Класс Habanero.DB.ManagedConnection

Facade to provide a cheap leasing effect on database connections for helping with concurrency
Наследование: IDbConnection
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BeginTransaction() публичный Метод

Begins a database transaction.
public BeginTransaction ( ) : IDbTransaction
Результат IDbTransaction

BeginTransaction() публичный Метод

Begins a database transaction with the specified T:System.Data.IsolationLevel value.
public BeginTransaction ( IsolationLevel il ) : IDbTransaction
il IsolationLevel One of the values.
Результат IDbTransaction

ChangeDatabase() публичный Метод

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.
Результат void

Close() публичный Метод

Closes the connection to the database.
public Close ( ) : void
Результат void

CreateCommand() публичный Метод

Creates and returns a Command object associated with the connection.
public CreateCommand ( ) : IDbCommand
Результат IDbCommand

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

ManagedConnection() публичный Метод

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
Результат System

Open() публичный Метод

Opens a database connection with the settings specified by the ConnectionString property of the provider-specific Connection object.
public Open ( ) : void
Результат void