Visual Basic (Declaration) | |
---|---|
Function GetRealIdMap( _ ByVal tempIds As UniqueIdCollection, _ ByVal dataSourceKey As IDataSourceKey _ ) As UniqueIdMap |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IIdGenerator Dim tempIds As UniqueIdCollection Dim dataSourceKey As IDataSourceKey Dim value As UniqueIdMap value = instance.GetRealIdMap(tempIds, dataSourceKey) |
C# | |
---|---|
UniqueIdMap GetRealIdMap( UniqueIdCollection tempIds, IDataSourceKey dataSourceKey ) |
C++/CLI | |
---|---|
UniqueIdMap^ GetRealIdMap( UniqueIdCollection^ tempIds, IDataSourceKey^ dataSourceKey ) |
Parameters
- tempIds
- dataSourceKey
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.
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