DbDataAdapter Update Method (String, RecordSet)NReco.Data Class Library Documentation
Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified RecordSet.

Namespace: NReco.Data
Assembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
Syntax

public int Update(
	string tableName,
	RecordSet recordSet
)

Return Value

Type: Int32
The number of rows successfully updated.

Implements

IRecordSetAdapter Update(String, RecordSet)
Remarks

PrimaryKey should be set before calling Update(String, RecordSet).

When an application calls the Update method, DbDataAdapter examines the State property, and executes the required INSERT, UPDATE, or DELETE statements iteratively for each row (based on the order of rows in RecordSet).
See Also