System.Data.IDbDataAdapter.UpdateCommand Property

Gets or sets an SQL statement used to update records in the data source.

Syntax

public IDbCommand UpdateCommand { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

During System.Data.Common.DbDataAdapter.Update(DataSet), if this property is not set and primary key information is present in the System.Data.DataSet, the IDbDataAdapter.UpdateCommand can be generated automatically if you set the SelectCommand property of a .NET Framework data provider. Then, any additional commands that you do not set are generated by the CommandBuilder. This generation logic requires key column information to be present in the System.Data.DataSet. For more information see [<topic://cpconAutomaticallyGeneratedCommands>].

When IDbDataAdapter.UpdateCommand is assigned to a previously created System.Data.IDbCommand, the System.Data.IDbCommand is not cloned. The IDbDataAdapter.UpdateCommand maintains a reference to the previously created System.Data.IDbCommand object.

Note:

If execution of this command returns rows, these rows are added to the System.Data.DataSet.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0