Click or drag to resize
IDataConnection Methods

The IDataConnection type exposes the following members.

Methods
  NameDescription
Public methodBeginTransaction
Begins a new transaction.
Public methodBeginTransaction(IsolationLevel)
Begins a new transaction with specified isolation level.
Public methodBulkInsert
Performs a bulk insert of the data into a target database table
Public methodClose
Closes connection to the database.
Public methodCommitTransaction
Commits current transaction.
Public methodExecuteNonQuery
Executes the query and returns the number of affected rows.
Public methodExecuteQuery
Returns result of the query.
Public methodExecuteReader
Returns result of the query as a Data reader. Keeps the connection open.
Public methodExecuteScalar
Returns a single value result of the query.
Public methodGetExecutingConnection
Gets the connection that executes the given query
Public methodGetXmlSchema
Returns XML schema for specified table.
Public methodIsOpen
Returns true if connection to the database is open.
Public methodIsTransaction
Indicates if transaction is running.
Public methodNativeConnectionExists
Returns true if the native connection exists.
Public methodNativeDBConnectionExists
Returns true if the native connection exists.
Public methodOpen
Opens connection to the database.
Public methodRollbackTransaction
Rollbacks current transaction.
Top
See Also