Compare LocalChange and RemoteChange rows by timestamp RRS feed

  • Question

  • When we want to resolve conflict with their conflict type, we are using DestinationWin and SourceWin as below;

    caseConflictResolutionPolicy.DestinationWins: e.Action = ApplyAction.Continue;      break; caseConflictResolutionPolicy.SourceWins: e.Action = ApplyAction.RetryWithForceWrite;      break; 

    Is it possible to compare "LocalChange" and "RemoteChange" rows by "DbApplyChangeFailedEventArgs.Conflict"?

    When we watch the "e.conflict" in the DestinationProvider's ApplyChangeFailed eventhandler we have seen the columns (sync_update_peer_timestamp,sync_update_peer_key,sync_create_peer_timestamp,sync_create_peer_key...). Are that columns help us to find which row updated/deleted/inserted before or which one is new? local? or remote? Why that columns are carried with the e.conflict.LocalChange and e.conflict.RemoteChange objects?



    Wednesday, March 14, 2012 1:21 PM

All replies