UpdateCommand property

Specifies a ULCommand object that is executed against the database when System.Data.Common.DbDataAdapter.Update(System.Data.DataSet) is called to update rows in the database that correspond to updated rows in the System.Data.DataSet.

Syntax
Visual Basic
Public Property UpdateCommand As ULCommand
C#
public ULCommand UpdateCommand { get; set; }
Property value

A ULCommand object that is executed to update rows in the database that correspond to updated rows in the System.Data.DataSet.

Remarks

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

If execution of this command returns rows, these rows may be merged with the System.Data.DataSet depending on how you set the ULCommand.UpdatedRowSource of the ULCommand object.

This is the strongly-typed version of System.Data.IDbDataAdapter.UpdateCommand and System.Data.Common.DbDataAdapter.DeleteCommand.

See also