locked
Help with concurrency check/resolve on server instead of client RRS feed

  • Question

  • Hi

    Having as in previous post problem with concurrency.

    Is there a way to like the code below do this on serverside instead on the client.

    Can Save executed failed be used?

    Any thoughts on this?

    Thanks in advance.

    Sven

    Try
                    Me.DataWorkspace.ApplicationData.SaveChanges()
    
                Catch ex As ConcurrencyException
                    For Each conflict As IEntityObject In ex.EntitiesWithConflicts
                        If conflict.Details.EntityConflict.IsDeletedOnServer Then
                            conflict.Details.EntityConflict.ResolveConflicts(Microsoft.LightSwitch.Details.ConflictResolution.ServerWins)
                        Else
                            conflict.Details.EntityConflict.ResolveConflicts(Microsoft.LightSwitch.Details.ConflictResolution.ClientWins)
                        End If
                    Next
                End Try


    SE1969

    Tuesday, February 26, 2013 5:37 PM

Answers