IdeaBlade.EntityModel.Compat Assembly > IdeaBlade.EntityModel.Compat Namespace > EntityManagerAsyncExtensions Class : ForceIdFixupAsync Method |
'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)
[Extension()] public static BasicOperation ForceIdFixupAsync( EntityManager em, Action<BasicOperation> userCallback, object userState )
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.
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