DataConnection Methods |
The DataConnection type exposes the following members.
Name | Description | |
---|---|---|
AddParameters |
Adds the given parameters to the SQL command
(Inherited from AbstractDataConnection.) | |
BeginTransaction |
Begins a new transaction.
(Inherited from AbstractDataConnection.) | |
BeginTransaction(IsolationLevel) |
Begins a new transaction.
(Inherited from AbstractDataConnection.) | |
BulkInsert |
Performs a bulk insert of the data into a target database table
(Overrides AbstractDataConnectionBulkInsert(DataTable, String, BulkInsertSettings).) | |
CheckThreadSafety |
Checks the thread safety of current operation.
(Inherited from AbstractDataConnection.) | |
Close |
Closes connection to the database.
(Inherited from AbstractDataConnection.) | |
CommitTransaction |
Commits current transaction.
(Inherited from AbstractDataConnection.) | |
CreateCommand |
Creates a new SQL command
(Overrides AbstractDataConnectionCreateCommand(String).) | |
CreateDataAdapter |
Creates a data adapter
(Overrides AbstractDataConnectionCreateDataAdapter.) | |
CreateNativeConnection |
Creates a new native connection
(Overrides AbstractDataConnectionCreateNativeConnection.) | |
CreateParameter(DataParameter) |
Creates a SQL parameter from the given data parameter
(Inherited from AbstractDataConnection.) | |
CreateParameter(String, Object) |
Creates a new command parameter
(Overrides AbstractDataConnectionCreateParameter(String, Object).) | |
Dispose |
Disposes the connection object.
(Inherited from AbstractDataConnection.) | |
ExecuteNonQuery |
Executes the query and returns the number of rows affected.
(Inherited from AbstractDataConnection.) | |
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.
(Inherited from AbstractDataConnection.) | |
ExecuteReader |
Executes the query and returns result of the query as a DbDataReader.
(Inherited from AbstractDataConnection.) | |
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.
(Inherited from AbstractDataConnection.) | |
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
(Inherited from AbstractDataConnection.) | |
GetNestedConnection |
Gets the nested connection with the given connection string
(Inherited from AbstractDataConnection.) | |
GetXmlSchema |
Returns XML schema for specified table.
(Inherited from AbstractDataConnection.) | |
HandleDbError |
Handles the database error. Returns false, if the error was not handled
(Overrides AbstractDataConnectionHandleDbError(String, DbException).) | |
HandleError |
Handles the error. Returns false, if the error was not handled
(Inherited from AbstractDataConnection.) | |
IsOpen |
Returns true if connection to the database is open.
(Inherited from AbstractDataConnection.) | |
IsTransaction |
Indicates if transaction is running.
(Inherited from AbstractDataConnection.) | |
LoadDefaultConnectionString |
Loads the default connection string
(Inherited from AbstractDataConnection.) | |
LogConnectionOperation |
Logs the connection operation to the query log.
(Inherited from AbstractDataConnection.) | |
NativeConnectionExists |
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.) | |
NativeDBConnectionExists |
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.) | |
Open |
Opens connection to the database.
(Inherited from AbstractDataConnection.) | |
PrepareCommand |
Prepares the SQL command for the query.
(Inherited from AbstractDataConnection.) | |
RollbackTransaction |
Rollbacks current transaction.
(Inherited from AbstractDataConnection.) | |
SetParameterType |
Sets the parameter type to a destination type
(Inherited from AbstractDataConnection.) | |
ValidateTransaction |
Validates the transaction
(Inherited from AbstractDataConnection.) |