IDataConnection Methods |
The IDataConnection type exposes the following members.
Name | Description | |
---|---|---|
BeginTransaction |
Begins a new transaction.
| |
BeginTransaction(IsolationLevel) |
Begins a new transaction with specified isolation level.
| |
BulkInsert |
Performs a bulk insert of the data into a target database table
| |
Close |
Closes connection to the database.
| |
CommitTransaction |
Commits current transaction.
| |
ExecuteNonQuery |
Executes the query and returns the number of rows affected.
| |
ExecuteNonQueryAsync | An asynchronous version of ExecuteNonQuery(String, QueryDataParameters, QueryTypeEnum, Boolean) which executes the query asynchronously and returns the number of rows affected. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
ExecuteQuery |
Returns result of the query.
| |
ExecuteReader |
Executes the query and returns result as a DbDataReader.
| |
ExecuteReaderAsync | An asynchronous version of ExecuteReader(String, QueryDataParameters, QueryTypeEnum, CommandBehavior) which executes the query asynchronously and returns result as a DbDataReader. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
ExecuteScalar |
Executes the query and returns the first column of the first row in the result set returned by the query.
Additional columns or rows are ignored.
| |
ExecuteScalarAsync | An asynchronous version of ExecuteScalar(String, QueryDataParameters, QueryTypeEnum, Boolean), which executes the query asynchronously and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object. | |
GetExecutingConnection |
Gets the connection that executes the given query
| |
GetXmlSchema |
Returns XML schema for specified table.
| |
IsOpen |
Returns true if connection to the database is open.
| |
IsTransaction |
Indicates if transaction is running.
| |
NativeConnectionExists |
Returns true if the native connection exists.
| |
NativeDBConnectionExists |
Returns true if the native connection exists.
| |
Open |
Opens connection to the database.
| |
RollbackTransaction |
Rollbacks current transaction.
|