The IDataConnection type exposes the following members.
Back to Top
Back to Top
Methods
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.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
ExecuteNonQuery |
Executes the query and returns the number of affected rows.
| |
ExecuteQuery |
Returns result of the query.
| |
ExecuteReader |
Returns result of the query as a Data reader. Keeps the connection open.
| |
ExecuteScalar |
Returns a single value result of the query.
| |
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.
|
Properties
Name | Description | |
---|---|---|
AdvancedSettings |
Advanced connection settings.
| |
CommandTimeout |
Command timeout.
| |
ConnectionString |
Connection string for specific provider.
| |
ConnectionStringName |
Connection string for specific provider.
| |
DisableConnectionDebug |
If true, the debug is disabled on this connection
| |
DisableQueryDebug |
If true, the debug of queries is disabled on this connection
| |
KeepOpen |
If true, the connection stays open even if close is requested.
| |
NativeConnection |
Native connection object. It depends on provider type.
| |
Transaction |
Transaction object.
| |
UseScopeConnection |
If true, the connection uses the scope connection
|
See Also