BusinessObject.GetNewStringKey

This method creates a new key for string-key rows.
By default, this method creates a GUID and turns it into a string.
If different behavior is desired, this method can be overridden in subclasses.

public virtual string GetNewStringKey( string entityName,
	DataSet dataSetWithNewRecords );

Return Value

String key

Parameters

entityName
Name of the entity the key is generated for

dataSetWithNewRecords
DataSet containing the new record the PK is for


See also:

Class BusinessObject


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