DbCommand Methods
.NET Framework 3.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Cancel | Attempts to cancels the execution of a DbCommand. |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject) |
| CreateParameter | Creates a new instance of a DbParameter object. |
| Dispose | Overloaded. Releases the resources used by the Component. (inherited from Component) |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| ExecuteNonQuery | Executes a SQL statement against a connection object. |
| ExecuteReader | Overloaded. Executes the CommandText against the Connection and returns a DbDataReader. |
| ExecuteScalar | Executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject) |
| Prepare | Creates a prepared (or compiled) version of the command on the data source. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. (inherited from Component) |
| Name | Description | |
|---|---|---|
| CreateDbParameter | Creates a new instance of a DbParameter object. |
| Dispose | Overloaded. Releases the resources used by the Component. (inherited from Component) |
| ExecuteDbDataReader | Executes the command text against the connection. |
| Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (inherited from Component) |
| GetService | Returns an object that represents a service provided by the Component or by its Container. (inherited from Component) |
| MemberwiseClone | Overloaded. (inherited from MarshalByRefObject) |
| Name | Description | |
|---|---|---|
| System.Data.IDbCommand.CreateParameter | |
| System.Data.IDbCommand.ExecuteReader | Overloaded. |