Updates the rows in the database with the changes made to the named System.Data.DataTable of the specified System.Data.DataSet.
Visual Basic
Overloads Public Function Update( _
ByVal dataSet As DataSet, _
ByVal srcTable As String _
) As Integer
C#
public int Update(
DataSet dataSet,
string srcTable
);
dataSet A System.Data.DataSet to update with records from.
srcTable The name of the source table to use for table mapping.
The number of rows successfully updated from the System.Data.DataSet.
For more information, see DbDataAdapter.Update.
System.ArgumentNullException - The dataSet or srcTable parameter is invalid.
InvalidOperationException - The ULDataAdapter.SelectCommand is invalid or, the table mapping is missing and ULDataAdapter.MissingMappingAction is set to System.Data.MissingMappingAction.Error or, the System.Data.DataTable is missing from the System.Data.DataSet.