C# 클래스 SqlFu.Executors.SqlFuConnection

상속: System.Data.Common.DbConnection
파일 보기 프로젝트 열기: sapiens/SqlFu 1 사용 예제들

공개 메소드들

메소드 설명
BeginSqlFuTransaction ( IsolationLevel isolationLevel = null ) : DbTransaction
ChangeDatabase ( string databaseName ) : void

Changes the current database for an open connection.

Close ( ) : void

Closes the connection to the database. This is the preferred method of closing any open connection.

Open ( ) : void

Opens a database connection with the settings specified by the P:System.Data.Common.DbConnection.ConnectionString.

SqlFuConnection ( DbConnection cnx, IDbProvider provider ) : System
SqlFuConnection ( IDbProvider provider, string cnxString ) : System

보호된 메소드들

메소드 설명
BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction

Starts a database transaction.

CreateDbCommand ( ) : DbCommand

Creates and returns a T:System.Data.Common.DbCommand object associated with the current connection.

Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
Commit ( ) : void
EnsureTransaction ( ) : void
Init ( string cnxString, IDbProvider provider ) : void
Rollback ( ) : void

메소드 상세

BeginDbTransaction() 보호된 메소드

Starts a database transaction.
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
isolationLevel IsolationLevel Specifies the isolation level for the transaction.
리턴 System.Data.Common.DbTransaction

BeginSqlFuTransaction() 공개 메소드

public BeginSqlFuTransaction ( IsolationLevel isolationLevel = null ) : DbTransaction
isolationLevel IsolationLevel
리턴 System.Data.Common.DbTransaction

ChangeDatabase() 공개 메소드

Changes the current database for an open connection.
public ChangeDatabase ( string databaseName ) : void
databaseName string Specifies the name of the database for the connection to use.
리턴 void

Close() 공개 메소드

Closes the connection to the database. This is the preferred method of closing any open connection.
The connection-level error that occurred while opening the connection.
public Close ( ) : void
리턴 void

CreateDbCommand() 보호된 메소드

Creates and returns a T:System.Data.Common.DbCommand object associated with the current connection.
protected CreateDbCommand ( ) : DbCommand
리턴 System.Data.Common.DbCommand

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Open() 공개 메소드

Opens a database connection with the settings specified by the P:System.Data.Common.DbConnection.ConnectionString.
public Open ( ) : void
리턴 void

SqlFuConnection() 공개 메소드

public SqlFuConnection ( DbConnection cnx, IDbProvider provider ) : System
cnx System.Data.Common.DbConnection
provider IDbProvider
리턴 System

SqlFuConnection() 공개 메소드

public SqlFuConnection ( IDbProvider provider, string cnxString ) : System
provider IDbProvider
cnxString string
리턴 System