dotConnect for Dynamics 365 Documentation
Devart.Data.Dynamics Namespace / DynamicsDataAdapter Class / DeleteCommand Property

In This Topic
    DeleteCommand Property
    In This Topic
    Gets or sets a Dynamics CRM statement to delete records from the data set.
    Syntax
    'Declaration
     
    Public Shadows Property DeleteCommand As DynamicsCommand
    public new DynamicsCommand DeleteCommand {get; set;}

    Property Value

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

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also