Click or drag to resize
DataConnection Methods

The DataConnection type exposes the following members.

Methods
  NameDescription
Protected methodAddParameters
Adds the given parameters to the SQL command
(Inherited from AbstractDataConnection.)
Public methodBeginTransaction
Begins a new transaction.
(Inherited from AbstractDataConnection.)
Public methodBeginTransaction(IsolationLevel)
Begins a new transaction.
(Inherited from AbstractDataConnection.)
Public methodBulkInsert
Performs a bulk insert of the data into a target database table
(Overrides AbstractDataConnectionBulkInsert(DataTable, String, BulkInsertSettings).)
Public methodClose
Closes connection to the database.
(Inherited from AbstractDataConnection.)
Public methodCommitTransaction
Commits current transaction.
(Inherited from AbstractDataConnection.)
Protected methodCreateCommand
Creates a new SQL command
(Overrides AbstractDataConnectionCreateCommand(String).)
Protected methodCreateDataAdapter
Creates a data adapter
(Overrides AbstractDataConnectionCreateDataAdapter.)
Protected methodCreateNativeConnection
Creates a new native connection
(Overrides AbstractDataConnectionCreateNativeConnection.)
Protected methodCreateParameter(DataParameter)
Creates a SQL parameter from the given data parameter
(Inherited from AbstractDataConnection.)
Protected methodCreateParameter(String, Object)
Creates a new command parameter
(Overrides AbstractDataConnectionCreateParameter(String, Object).)
Public methodDispose
Disposes the connection object.
(Inherited from AbstractDataConnection.)
Public methodExecuteNonQuery
Returns result of the query.
(Inherited from AbstractDataConnection.)
Public methodExecuteQuery
Returns result of the query.
(Inherited from AbstractDataConnection.)
Public methodExecuteReader
Returns result of the query as a Data reader. Keeps the connection open.
(Inherited from AbstractDataConnection.)
Public methodExecuteScalar
Returns a single value result of the query.
(Inherited from AbstractDataConnection.)
Public methodGetExecutingConnection
Gets the connection that executes the given query
(Inherited from AbstractDataConnection.)
Public methodGetNestedConnection
Gets the nested connection with the given connection string
(Inherited from AbstractDataConnection.)
Public methodGetXmlSchema
Returns XML schema for specified table.
(Inherited from AbstractDataConnection.)
Protected methodHandleDbError
Handles the database error. Returns false, if the error was not handled
(Overrides AbstractDataConnectionHandleDbError(String, DbException).)
Protected methodHandleError
Handles the error. Returns false, if the error was not handled
(Inherited from AbstractDataConnection.)
Protected methodCheckThreadSafety
Checks the thread safety of current operation.
(Inherited from AbstractDataConnection.)
Public methodIsOpen
Returns true if connection to the database is open.
(Inherited from AbstractDataConnection.)
Public methodIsTransaction
Indicates if transaction is running.
(Inherited from AbstractDataConnection.)
Protected methodLoadDefaultConnectionString
Loads the default connection string
(Inherited from AbstractDataConnection.)
Public methodLogConnectionOperation
Logs the connection operation to the query log.
(Inherited from AbstractDataConnection.)
Public methodNativeConnectionExists
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.)
Public methodNativeDBConnectionExists
Returns true if the native connection exists.
(Inherited from AbstractDataConnection.)
Public methodOpen
Opens connection to the database.
(Inherited from AbstractDataConnection.)
Protected methodPrepareCommand
Prepares the SQL command for the query.
(Inherited from AbstractDataConnection.)
Public methodRollbackTransaction
Rollbacks current transaction.
(Inherited from AbstractDataConnection.)
Protected methodSetParameterType
Sets the parameter type to a destination type
(Inherited from AbstractDataConnection.)
Protected methodValidateTransaction
Validates the transaction
(Inherited from AbstractDataConnection.)
Top
See Also