IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > IIdGenerator Interface : GetRealIdMap Method |
'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)
UniqueIdMap GetRealIdMap( UniqueIdCollection tempIds, IDataSourceKey dataSourceKey )
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.
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