IdeaBlade DevForce 2010 Help Reference
GetRealIdMap Method
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > IIdGenerator Interface : GetRealIdMap Method



tempIds
dataSourceKey
Returns a dictionary that maps temporary IDs to real IDs.

Syntax

Visual Basic (Declaration) 
Function GetRealIdMap( _
   ByVal tempIds As UniqueIdCollection, _
   ByVal dataSourceKey As IDataSourceKey _
) As UniqueIdMap
Visual Basic (Usage)Copy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.