Export (0) Print
Expand All

IDbCommand Methods

The IDbCommand type exposes the following members.

  Name Description
Public method Cancel Attempts to cancels the execution of an IDbCommand.
Public method CreateParameter Creates a new instance of an IDbDataParameter object.
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method ExecuteNonQuery Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.
Public method ExecuteReader() Executes the CommandText against the Connection and builds an IDataReader.
Public method ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.
Public method 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.
Public method Prepare Creates a prepared (or compiled) version of the command on the data source.
Top
Show:
© 2014 Microsoft