Export (0) Print
Expand All

IDbCommand Members

Represents an SQL statement that is executed while connected to a data source, and is implemented by .NET Framework data providers that access relational databases.

The following tables list the members exposed by the IDbCommand type.

  Name Description
Public property Supported by the .NET Compact Framework CommandText Gets or sets the text command to run against the data source.
Public property Supported by the .NET Compact Framework CommandTimeout Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
Public property Supported by the .NET Compact Framework CommandType Indicates or specifies how the CommandText property is interpreted.
Public property Supported by the .NET Compact Framework Connection Gets or sets the IDbConnection used by this instance of the IDbCommand.
Public property Supported by the .NET Compact Framework Parameters Gets the IDataParameterCollection.
Public property Supported by the .NET Compact Framework Transaction Gets or sets the transaction within which the Command object of a .NET Framework data provider executes.
Public property Supported by the .NET Compact Framework UpdatedRowSource Gets or sets how command results are applied to the DataRow when used by the Update method of a DbDataAdapter.
Top

  Name Description
Public method Supported by the .NET Compact Framework Cancel Attempts to cancels the execution of an IDbCommand.
Public method Supported by the .NET Compact Framework CreateParameter Creates a new instance of an IDbDataParameter object.
Public method Supported by the .NET Compact Framework ExecuteNonQuery Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.
Public method Supported by the .NET Compact Framework ExecuteReader Overloaded. Executes the CommandText against the Connection and builds an IDataReader.
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework Prepare Creates a prepared (or compiled) version of the command on the data source.
Top

Community Additions

ADD
Show:
© 2014 Microsoft