开发者

Microsoft Sync Framework

I have been working through some of the sync framework demos and one thing that doesn't seem to be clear is what you have to do to add a table? So if I start with Order and Order Details in my demo and I want to add a third table what are the steps? I have tried a few things, but they don't seem to be working. It appears that I would also have to modify the actual scope xml in my scope config table. Is that correct?

So basically what is best practice for handling changes to the master / source schema? Do you have to manually update the clients or will the changes made to the master / source be propogated down to the clients like with the initial sync?

开发者_StackOverflow中文版Any info would be greatly appreciated.

Thanks,

S


Sync Fx out of the box doesnt support changing the scope definition (add/remove column, add/remove table, add/remove filter).

the fastest workaround is to deprovision and reprovision the scope with a new definition.

or as you mentioned, you can hack your way to the sync fx objects. check http://jtabadero.wordpress.com/2011/03/24/modifying-sync-framework-scope-definition-part-2-workarounds/


I would version the scope definitions by including a version number in their names. Explicitly include column names in the scopes so you remain backward compatible.
Deploy a new version of the client with the new scope version, it will sync with the corresponding scope on the server.
Assuming you use WCF or some other mechanism to sync remotely, you can dispatch the incoming sync request to the correct server sync provider based on the scope name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜