sync framework not updating the existing row but uploading newly added rows

血红的双手。 提交于 2019-12-24 09:12:50

问题


I am using sync framework to sync data from onpremise(local) database to azure database .I have taken care of conflict also but after it is run fully is not uploading the new changes in existing row but inserting newly added row.can anyone suggest me why it is not updating existing row.Or is there any alternate soln for synchronise


回答1:


The situation is that Sync Framework, when found a conflict, don't know what to do. A conflict is like your case, where the same row have different values between local and remote.

In this case you need to code your own ApplyChangeFailed method. In this doc it is covered: http://msdn.microsoft.com/en-us/library/cc761628.aspx



来源:https://stackoverflow.com/questions/15634928/sync-framework-not-updating-the-existing-row-but-uploading-newly-added-rows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!