Using MS Sync Framework to synchronize two SQL CE Dbs

不羁岁月 提交于 2019-12-01 04:12:00

Sync Framework 2.0 allows synchronization between SQL Server Compact Edition databases.

SqlCeSyncProvider is used to synchronize SQL Server Compact databases.

This provider can be used to synchronize with a central server but also has the ability to synchronize with other clients, which is not possible with SqlCeClientSyncProvider. This ability enables developers to target new scenarios such as a collaboration scenario in which teams of people need to synchronize among each another in the absence of a connection to a central server.

All ado.net syncs require a client provider and a server provider.

Sadly, there isn't a SqlCeServerSyncProvider out of the box with the current version of the framework. What that means is that you have to subclass DBServerSyncProvider and wrap a SqlCeClientSyncProvider.

See this article for an example on how to do it with sql express.

It's the same concept, just that you'll be wrapping the SqlCeClientProvider. The good news is that the wrapping might be easier.

Good luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!