Export (0) Print
Expand All

IDbCommand Members

IDbCommand overview

Public Properties

public propertyCommandText

Supported by the .NET Compact Framework.

Gets or sets the text command to run against the data source.
public propertyCommandTimeout

Supported by the .NET Compact Framework.

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.
public propertyCommandType

Supported by the .NET Compact Framework.

Indicates or specifies how the CommandText property is interpreted.
public propertyConnection

Supported by the .NET Compact Framework.

Gets or sets the IDbConnection used by this instance of the IDbCommand.
public propertyParameters

Supported by the .NET Compact Framework.

Gets the IDataParameterCollection.
public propertyTransaction

Supported by the .NET Compact Framework.

Gets or sets the transaction within which the Command object of a .NET Framework data provider executes.
public propertyUpdatedRowSource

Supported by the .NET Compact Framework.

Gets or sets how command results are applied to the DataRow when used by the Update method of a DbDataAdapter.

Public Methods

public methodCancel

Supported by the .NET Compact Framework.

Attempts to cancels the execution of an IDbCommand.
public methodCreateParameter

Supported by the .NET Compact Framework.

Creates a new instance of an IDbDataParameter object.
public methodExecuteNonQuery

Supported by the .NET Compact Framework.

Executes an SQL statement against the Connection object of a .NET Framework data provider, and returns the number of rows affected.
public methodExecuteReader

Supported by the .NET Compact Framework.

Overloaded. Executes the CommandText against the Connection and builds an IDataReader.
public methodExecuteScalar

Supported by the .NET Compact Framework.

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 methodPrepare

Supported by the .NET Compact Framework.

Creates a prepared (or compiled) version of the command on the data source.

See Also

IDbCommand Interface | System.Data Namespace

Show:
© 2014 Microsoft