dotConnect for Salesforce Marketing Cloud Documentation
Devart.Data.ExactTarget Namespace / ExactTargetDataAdapter Class / UpdateCommand Property

In This Topic
UpdateCommand Property
In This Topic
Gets or sets a Salesforce Marketing Cloud statement used to update records in the data source.
Syntax
'Declaration
 
Public Shadows Property UpdateCommand As ExactTargetCommand
 

Property Value

A ExactTargetCommand used during an update operation to update records in the data source that correspond to modified rows in the System.Data.DataSet.
Remarks
During an update operation, if UpdateCommand is not set and primary key information is present in the System.Data.DataSet, you can use the ExactTargetCommandBuilder class to automatically generate UpdateCommand, and additional commands needed to reconcile the System.Data.DataSet to the data source. To do this, set the SelectCommand property of the ExactTargetDataAdapter. For more information see "Automatically Generated Commands" in the Microsoft .NET Framework SDK documentation.

Note: If execution of this command returns rows, these rows may be merged with the System.Data.DataSet depending upon how you set the Devart.Common.DbCommandBase.UpdatedRowSource property of the ExactTargetCommand object.

See Also