同步框架不更新现有行而是上传新添加的行 [英] sync framework not updating the existing row but uploading newly added rows

查看:26
本文介绍了同步框架不更新现有行而是上传新添加的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用同步框架将数据从本地(本地)数据库同步到 azure 数据库.我也处理了冲突,但在完全运行后不是上传现有行中的新更改,而是插入新添加的行.可以任何人都建议我为什么不更新现有行.或者是否有同步的替代解决方案

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

推荐答案

情况是Sync Framework,发现有冲突,不知道怎么办.冲突就像您的情况,其中同一行在本地和远程之间具有不同的值.

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.

在这种情况下,您需要编写自己的 ApplyChangeFailed 方法.在本文档中,它涵盖:http://msdn.microsoft.com/en-我们/图书馆/cc761628.aspx

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

这篇关于同步框架不更新现有行而是上传新添加的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆