Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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 IDbCommand type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Cancel Attempts to cancels the execution of an IDbCommand.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CreateParameter Creates a new instance of an IDbDataParameter object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework ExecuteReader Overloaded. Executes the CommandText against the Connection and builds an IDataReader.
Public method Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework Prepare Creates a prepared (or compiled) version of the command on the data source.
Top
  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CommandText Gets or sets the text command to run against the data source.
Public property Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework CommandType Indicates or specifies how the CommandText property is interpreted.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Connection Gets or sets the IDbConnection used by this instance of the IDbCommand.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Parameters Gets the IDataParameterCollection.
Public property Supported by the .NET Compact Framework Supported by the XNA 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 Supported by the XNA Framework UpdatedRowSource Gets or sets how command results are applied to the DataRow when used by the Update method of a DbDataAdapter.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.