Edit

Share via


OracleDataAdapter.DeleteCommand Property

Definition

Gets or sets an SQL statement or stored procedure used to delete records in the database.

public:
 property System::Data::OracleClient::OracleCommand ^ DeleteCommand { System::Data::OracleClient::OracleCommand ^ get(); void set(System::Data::OracleClient::OracleCommand ^ value); };
public System.Data.OracleClient.OracleCommand DeleteCommand { get; set; }
member this.DeleteCommand : System.Data.OracleClient.OracleCommand with get, set
Public Property DeleteCommand As OracleCommand

Property Value

An OracleCommand used during an update operation to delete records in the database that correspond to deleted rows in the DataSet.

Remarks

When the DeleteCommand property is assigned to a previously created OracleCommand, the OracleCommand is not cloned. Instead, the DeleteCommand maintains a reference to the previously created OracleCommand.

During an update operation, if DeleteCommand is not set and primary key information is present in the DataSet, you can use the OracleCommandBuilder class to automatically generate the DeleteCommand, and additional commands needed to reconcile the DataSet to the database. To do this, set the SelectCommand property of the OracleDataAdapter. The generation logic also requires key column information to be present in the DataSet. For more information see Generating Commands with CommandBuilders.

Applies to

See also