Contents Index ContinueUpdateOnError property Fill method

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

DeleteCommand property


Description 

An AsaCommand object that is executed against the database when Update() is called to delete rows in the database that correspond to deleted rows in the DataSet.

Syntax 

AsaCommand DeleteCommand

Access 

Read-write

Usage 

If this property is not set and primary key information is present in the DataSet during Update, DeleteCommand can be generated automatically by setting SelectCommand and using the AsaCommandBuilder. In that case, the AsaCommandBuilder generates any additional commands that you do not set. This generation logic requires key column information to be present in the SelectCommand.

When DeleteCommand is assigned to an existing AsaCommand object, the AsaCommand object is not cloned. The DeleteCommand maintains a reference to the existing AsaCommand.

See also 

Update method

SelectCommand property


Contents Index ContinueUpdateOnError property Fill method