DataHelper.BuildSqlUpdateCommand

This method takes an empty command object as well as a data row, and builds
an SQL compliant update command, depending on the row state and update mode.

public static IDbCommand BuildSqlUpdateCommand( DataRow changedRow,
	KeyType primaryKeyType,
	string primaryKeyField,
	IDataService dataService,
	DataRowUpdateMode updateMode );

Return Value

Fully configured command object that is ready to be executed.

Parameters

changedRow
Updated data row

primaryKeyType
Primary key type (guid, integer,...)

primaryKeyField
Name of the primary key field

dataService
Instance of a concrete data service

updateMode
Should all fields be sent to the server, or only the changed ones?


See also:

Class DataHelper


  Last Updated: 5/23/2007 | © , 2007