Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified RecordSet.
Namespace: NReco.DataAssembly: NReco.Data (in NReco.Data.dll) Version: 1.0.2
Syntax
Parameters
- tableName
- Type: System String
The name of the source table.
- recordSet
- Type: NReco.Data RecordSet
RecordSet to use to update the data source.
Return Value
Type: Int32The 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