C# 클래스 Dibware.StoredProcedureFramework.Base.StoredProcedureSqlConnection

Represents a base class that may be inherited for use with an application specific connection
상속: System.Data.Common.DbConnection, IDisposable
파일 보기 프로젝트 열기: dibley1973/StoredProcedureFramework

Private Properties

프로퍼티 타입 설명
Dispose void

공개 메소드들

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

Dispose ( ) : void

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

Open ( ) : void

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

보호된 메소드들

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

StoredProcedureSqlConnection ( string connectionString ) : System

Initializes a new instance of the StoredProcedureSqlConnection class.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

메소드 상세

BeginDbTransaction() 보호된 메소드

Starts a database transaction.
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
isolationLevel IsolationLevel Specifies the isolation level for the transaction.
리턴 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.
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() 공개 메소드

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

Open() 공개 메소드

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

StoredProcedureSqlConnection() 보호된 메소드

Initializes a new instance of the StoredProcedureSqlConnection class.
protected StoredProcedureSqlConnection ( string connectionString ) : System
connectionString string The connection string.
리턴 System