是否可以在 MS Sync Framework 中同步非整个表数据?

发布于 2024-08-17 12:44:14 字数 96 浏览 2 评论 0原文

我有移动应用程序,所以我不想发送/接收表中的全部更改。只是一些满足某些过滤条件的数据。用SF可以实现吗?如果是,请提供一些资源来阅读它,因为我几乎什么也没找到。
谢谢。

I have mobile application, so i dont want to send/receive whole changes in tables..Just some data, that meets some filter terms. Is it possible to achieve with SF; if it is, please provide some resources to read about it, because i found almost nothing.

Thank You.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清欢 2024-08-24 12:44:14

是的,这是可能的。例如,您可能只想同步与特定商店相关的记录,而不是商店表中的所有更改。

您可以通过向 SyncParameters 集合添加参数来完成此操作。例如

m_SyncAgent.Configuration.SyncParameters.Add("@ParamName", paramValue)

这会将参数数据传递到同步进程的服务器端,然后您可以使用它来仅同步您想要包含的数据。

Yes its possible. For example you might only want to sync the records relating to a specific store, rather than all the changes in the store table.

You do this by adding a parameter to the SyncParameters collection. e.g.

m_SyncAgent.Configuration.SyncParameters.Add("@ParamName", paramValue)

This will pass the parameter data to the serverside of the Sync process, which you can then use to sync only the data you want to include.

铜锣湾横着走 2024-08-24 12:44:14

使用 SQL Server 复制服务 (SSRS) 绝对可以实现这一点。您可以选择哪些表、字段,甚至可以对出版物应用过滤器。我不熟悉 Sync Framework,但 SSRS 订阅出现在 Sync Center 中,因此我的假设是 Sync Framework 使用 SSRS。

It's definitely possible with SQL Server Replication Services (SSRS). You can select which tables, fields, and even apply filters to the publication. I'm not familiar with Sync Framework but SSRS subscriptions appear in the Sync Center, so my assumption is that Sync Framework uses SSRS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文