Send feedback on this topic.
Teradata.Client.Provider
DeleteCommand Property



Teradata.Client.Provider Namespace > TdDataAdapter Class : DeleteCommand Property
Gets or sets a TdCommand used to delete a row from a Teradata Table corresponding to a row in a DataTable..
Syntax
'Declaration
 
Public Shadows Property DeleteCommand As TdCommand
'Usage
 
Dim instance As TdDataAdapter
Dim value As TdCommand
 
instance.DeleteCommand = value
 
value = instance.DeleteCommand
public new TdCommand DeleteCommand {get; set;}
public:
new property TdCommand^ DeleteCommand {
   TdCommand^ get();
   void set (    TdCommand^ value);
}

Property Value

Specified a TdCommand object used to delete a row from the Teradata Database table which corresponds to the deleted row in the DataTable. The default value is null.
Remarks

The DeleteCommand property is used to delete a row from the Teradata Database. The data adapter does not modify the TdCommand object (DeleteCommand) but it maps the DataRow to the TdCommand.Parameters collection and executes the resulting command. See the TdParameter. SourceColumn for additional information on how the columns in the DataTable and how the DataRow are mapped to the parameters.

It is your responsibility to map the columns in DataTable to the parameters. Alternatively, you can use TdCommandBuilder to dynamically generate the TdCommand used to delete a row from the Advanced SQL Engine.

When you set the DeleteCommand property, the TdCommand object passed in is not cloned but rather a reference to the object is maintained by the TdDataAdapter.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdDataAdapter Class
TdDataAdapter Members