IDbCommand Methods
.NET Framework 4.5
The IDbCommand type exposes the following members.
| Name | Description | |
|---|---|---|
|
Cancel | Attempts to cancels the execution of an IDbCommand. |
|
CreateParameter | Creates a new instance of an IDbDataParameter object. |
|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
|
ExecuteNonQuery | Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected. |
|
ExecuteReader() | Executes the CommandText against the Connection and builds an IDataReader. |
|
ExecuteReader(CommandBehavior) | Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values. |
|
ExecuteScalar | Executes the query, and returns the first column of the first row in the resultset returned by the query. Extra columns or rows are ignored. |
|
Prepare | Creates a prepared (or compiled) version of the command on the data source. |