使用 MS 同步效果,某些更改无法应用
我正在使用同步框架在 SQL-Server 和 SDF 之间进行同步。我使用 VS-2010 本地数据库缓存来执行实际同步,并将 ConflictResolver 设置为客户端获胜。
我尝试同步两者之间的更改,仅修改了一侧,但某些记录无法同步到另一侧(从 SDF 到 SQL)。 在从 Agent.Synchronize() 方法返回的 SyncStatistics 中,我看到 SyncStatistics.DownloadChangesFailed 值设置为 9。
但是我无法收集更多信息。
有人能帮我理解这一点吗?我认为这里不应该存在冲突,但如果存在冲突,Client-Wins 设置是否就足够了?
提前致谢, 阿萨夫。
I'm using the sync framework to sync between an SQL-Server and an SDF. I'm using VS-2010 Local Database Cache to do the actual sync, with the ConflictResolver set to client wins.
I tried to sync changes between the two, having modified only one side, and yet some records fail to sync to the other side (from SDF to SQL).
In the SyncStatistics returned from the Agent.Synchronize() method, I saw that the SyncStatistics.DownloadChangesFailed value was set to 9.
I could not however glean any more information.
Can anybody help me understand this? I don't think there should be a conflict here, but if there is - shouldn't the Client-Wins setting be sufficient?
Thanks in Advance,
Assaf.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果我忘记添加服务器端冲突处理。
加上这一点,我一切都开始工作了。
阿萨夫
Turns out that I forgot to add server side handling of conflicts.
Adding that, I got everything to work.
Assaf