使用 Microsoft 同步框架 2.1 更新架构更改

发布于 2024-10-06 21:50:17 字数 137 浏览 1 评论 0原文

是否可以使用同步框架 2.1 更新服务器端和 Ce(本地) 架构。

1) 目前同步工作正常。如果我更新服务器架构(向表中添加额外的列)。 如何在SqlCe(Local)中反映这一点?

2)MSF 4.0支持这种场景吗?

Is this possible to update the server side and Ce(local) Schema using sync framework 2.1.

1) Currently Sync is working fine. If i update server schema(adding an extra column to table).
How to reflect this in SqlCe(Local)?

2) Is this kind of scenario Supported in MSF 4.0?

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

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

发布评论

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

评论(2

我的鱼塘能养鲲 2024-10-13 21:50:17

Sync Fx 4.0 中没有关于更新范围配置以反映架构更改的任何内容。 (现在也有 Sync Fx 4。以前称为 Sync Fx CTP 4 的产品已作为 Sync Framework Toolkit 发布)

如果您愿意,您可以破解scope_config 来更改范围配置,请参阅:

修改同步框架范围定义 – 第 1 部分 –简介

修改同步框架范围定义 – 第 2 部分 – 解决方法

修改同步框架范围定义 – 第 3 部分 – 解决方法 – 添加/删除列

修改同步框架范围定义 – 第 4 部分 – 解决方法 – 添加现有范围的表

there is nothing in Sync Fx 4.0 around updating scope configuration to reflect schema changes. (there is now Sync Fx 4 either. What used to be known as Sync Fx CTP 4 was released as Sync Framework Toolkit)

if you're up to it, you can hack the scope_config to alter the scope configuration, see:

Modifying Sync Framework Scope Definition – Part 1 – Introduction

Modifying Sync Framework Scope Definition – Part 2 – Workarounds

Modifying Sync Framework Scope Definition – Part 3 – Workarounds – Adding/Removing Columns

Modifying Sync Framework Scope Definition – Part 4 – Workarounds – Adding a Table to an existing scope

亚希 2024-10-13 21:50:17

是的,你可以这样做。您只需删除范围,重新创建它并再次执行同步。我不确定 MSF 4.0 中是否可用

Yes, you can do that. You just need to drop the scope, recreate it and perform the sync again. I am not sure if this is available in MSF 4.0

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