如何不同步已删除的行 [英] How not to sync deleted rows

查看:47
本文介绍了如何不同步已删除的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我是Sync Framework的新手,现在我正在调查其功能。

I'm new to Sync Framework and now I'm investigating on its features.

在我的测试中app我使用SqlSyncProvider和SqlCeSyncProvider在SQL CE和SQL Express之间实现了同步。  同步是使用  SyncOrchestrator类完成的。首先,我想修改我的
代码,以便只在客户端和服务器之间同步插入和更新。  不应同步客户端或服务器数据库中的删除。

In my test app I have implemented synchronization between SQL CE and SQL Express using SqlSyncProvider and SqlCeSyncProvider. The synchronization is done using SyncOrchestrator class. First of all, I'd like to modify my code so that only inserts and updated should be synced between client and server.  Deletes in client or server database should not be synced.

我想知道我该怎么办?我应该使用自定义同步提供程序类还是某些自定义SQL脚本?请帮我解决这个问题。

I wonder how I can do this? Should I use custom sync provider classes, or some custom SQL script? Please help me with this problem.

 

谢谢。

推荐答案

尝试在配置时禁用由Sync Fx创建的删除触发器。范围内的每个表都有一个。

try disabling the Delete Trigger created by Sync Fx when provisioning. There will be one for each table in the scope.


这篇关于如何不同步已删除的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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