DB2CommandBuilder Methods
The methods of the DB2CommandBuilder class are listed here. For a complete list of DB2CommandBuilder class members, see the DB2CommandBuilder Members topic.
Public Methods
| Method | Description |
|---|---|
CreateObjRef (inherited from MarshalByRefObject) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
DeriveParameters |
Retrieves parameter information from the stored procedure specified in the DB2®Command and populates the Parameters collection of the specified DB2Command object. |
Dispose (inherited from Component) |
Overloaded. Releases the resources used by the Component. |
Equals (inherited from Object) |
Overloaded. Determines whether two Object instances are equal. |
GetDeleteCommand |
Gets the automatically generated DB2Command object required to perform deletions at the database. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetInsertCommand |
Gets the automatically generated DB2Command object required to perform insertions at the database. |
GetLifetimeService (inherited
from MarshalByRefObject) |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from Object) |
Gets the Type of the current instance. |
GetUpdateCommand |
Gets the automatically generated DB2Command object required to perform updates at the database. |
InitializeLifetimeService (inherited
from MarshalByRefObject) |
Obtains a lifetime service object to control the lifetime policy for this instance. |
QuoteIdentifier |
Accepts an unquoted identifier and returns the identifier in a quoted form. |
RefreshSchema |
Refreshes the database schema information used to generate INSERT, UPDATE, or DELETE statements. |
UnquoteIdentifier |
Accepts a quoted identifier and returns the identifier in an unquoted form. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected Methods
| Method | Description |
|---|---|
ApplyParameterInfo |
Overloaded. Assigns a value to the DbParameter.DbType property using the data type from the DataRow. Used internally by DbCommandBuilder. |
Dispose |
Overloaded. Overridden. Releases the resources used by the DB2CommandBuilder. |
GetParameterName |
Overloaded. Returns the full name of the parameter using the partial parameter name. |
GetParameterPlaceholder |
Returns the placeholder for the parameter in the associated SQL statement. |
GetService (inherited from Component) |
Returns an object that represents a service provided by the Component or by its Container. |
MemberwiseClone (inherited
from Object) |
Creates a shallow copy of the current Object. |
SetRowUpdatingHandler |
Registers the DB2CommandBuilder to handle the RowUpdating event for a DB2DataAdapter. |