DevForce Help Reference
ForceIdFixupAsync Method (EntityManagerAsyncExtensions)


Optional callback invoked when asynchronous operation completes
Optional token identifying the asynchronous operation
Perform an asynchronous ForceIdFixup operation.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Shared Function ForceIdFixupAsync( _
   ByVal em As EntityManager, _
   ByVal userCallback As Action(Of BasicOperation), _
   Optional ByVal userState As Object _
) As BasicOperation
'Usage
 
Dim em As EntityManager
Dim userCallback As Action(Of BasicOperation)
Dim userState As Object
Dim value As BasicOperation
 
value = EntityManagerAsyncExtensions.ForceIdFixupAsync(em, userCallback, userState)

Parameters

em
userCallback
Optional callback invoked when asynchronous operation completes
userState
Optional token identifying the asynchronous operation
Remarks
Provide a userCallback if you want to be notified when the operation completes. Use the userState to uniquely identify this call.

An asynchronous ID fixup may not be cancelled.

Auto-generated temporary IDs are automatically "fixed up" during save processing. You can force that fixup to be done prior to a save by calling this method. An exception will be thrown if any entity properties whose schema definition has a StoreGeneratedPattern="identity" attribute are pending fixup, since these IDs can only be assigned during a save operation.

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

EntityManagerAsyncExtensions Class
EntityManagerAsyncExtensions Members

Send Feedback