BusinessObject.PrimaryKeyValueChanged

This method is called whenever the primary key value changes, as it may be the
case in scenario where auto-increment integer keys are generated by the database
and override previously created temporary keys on the client.
This method is designed to be overridden in subclasses.

public virtual void PrimaryKeyValueChanged( DataSet updatedDataSet,
	string tableName,
	int oldKey,
	int newKey );

Parameters

updatedDataSet
DataSet that contains the updated table as well as potential other tables that need to be updated.

tableName
Table in which the key has changed.

oldKey
Original (temporary) key value

newKey
New (final) key value


See also:

Class BusinessObject


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