Update(DataSet) Method
Syntax:
public int Update(DataSet dataSet)
Description:
Uses the associated InsertCommand, UpdateCommand or DeleteCommand properties for each inserted, updated, or deleted row in the specified DataSet.
Parameters:
dataSet
Type: System.Data.DataSet
The DataSet used to update the database.
Return Value:
Type: System.Int32
The number of rows successfully updated from the DataSet.
Exceptions:
Exception | Condition |
---|---|
InvalidOperationException | The source table is invalid |
DBConcurrencyException | An attempt to update the database resulted in zero records affected. |
Reference:
For more information, reference MSDN documentation for: System.Data.Common.DbDataAdapter.Update(DataRow[])