C# 클래스 Habanero.DB.ManagedConnection

Facade to provide a cheap leasing effect on database connections for helping with concurrency
상속: IDbConnection
파일 보기 프로젝트 열기: Chillisoft/habanero

공개 메소드들

메소드 설명
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