Contents Index Update method AsaDataReader class

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaDataAdapter class

UpdateCommand property


Description 

An AsaCommand that is executed against the database when Update() is called to update rows in the database that correspond to updated rows in the DataSet.

Syntax 

AsaCommand UpdateCommand

Access 

Read-write

Usage 

During Update, if this property is not set and primary key information is present in the SelectCommand, the UpdateCommand can be generated automatically if you set the SelectCommand property and use the AsaCommandBuilder. Then, any additional commands that you do not set are generated by the AsaCommandBuilder. This generation logic requires key column information to be present in the SelectCommand.

When UpdateCommand is assigned to a previously created AsaCommand, the AsaCommand is not cloned. The UpdateCommand maintains a reference to the previously created AsaCommand object.

If execution of this command returns rows, these rows may be merged with the DataSet depending on how you set the UpdatedRowSource property of the AsaCommand object.

See also 

Update method


Contents Index Update method AsaDataReader class