C# Class SqlFu.Executors.SqlFuConnection

Inheritance: System.Data.Common.DbConnection
Afficher le fichier Open project: sapiens/SqlFu Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
Commit ( ) : void
EnsureTransaction ( ) : void
Init ( string cnxString, IDbProvider provider ) : void
Rollback ( ) : void

Method Details

BeginDbTransaction() protected méthode

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

BeginSqlFuTransaction() public méthode

public BeginSqlFuTransaction ( IsolationLevel isolationLevel = null ) : DbTransaction
isolationLevel IsolationLevel
Résultat System.Data.Common.DbTransaction

ChangeDatabase() public méthode

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.
Résultat void

Close() public méthode

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
Résultat void

CreateDbCommand() protected méthode

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

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Open() public méthode

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

SqlFuConnection() public méthode

public SqlFuConnection ( DbConnection cnx, IDbProvider provider ) : System
cnx System.Data.Common.DbConnection
provider IDbProvider
Résultat System

SqlFuConnection() public méthode

public SqlFuConnection ( IDbProvider provider, string cnxString ) : System
provider IDbProvider
cnxString string
Résultat System