C# Класс SqlFu.Executors.SqlFuConnection

Наследование: System.Data.Common.DbConnection
Показать файл Открыть проект Примеры использования класса

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

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