Using MS Sync Framework to synchronize two SQL CE Dbs

前端 未结 2 486
深忆病人
深忆病人 2021-01-12 08:35

I\'m just working into the Microsoft Sync Framework. It looks quite easy to sync a local SQL CE 3.5 Database with a remote SQL Server 2008 using the SqlSyncAdapterBuilder an

2条回答
  •  自闭症患者
    2021-01-12 08:50

    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!

提交回复
热议问题