DevForce Help Reference
GetRealIdMap Method (IIdGenerator)


Returns a dictionary that maps temporary IDs to real IDs.
Syntax
'Declaration
 
Function GetRealIdMap( _
   ByVal tempIds As UniqueIdCollection, _
   ByVal dataSourceKey As IDataSourceKey _
) As UniqueIdMap
'Usage
 
Dim instance As IIdGenerator
Dim tempIds As UniqueIdCollection
Dim dataSourceKey As IDataSourceKey
Dim value As UniqueIdMap
 
value = instance.GetRealIdMap(tempIds, dataSourceKey)

Parameters

tempIds
dataSourceKey
Remarks
In the UniqueIdMap returned, the UniqueId key contains the temporary ID, while the value holds the real ID.

GetRealIdMap is called by the EntityManager during EntityManager.SaveChanges processing. The collection of temporary IDs passed in may contain entries for multiple entity types. You can use the IDataSourceKey passed to manage access to the backend data source to determine real IDs.

In an n-tier deployment, this method is called only on the "server" instance of this class.

The definition of a "real" ID is user-defined.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IIdGenerator Interface
IIdGenerator Members

Send Feedback