Sync Framework v1 provisioning support RRS feed

  • Question

  • Hello,

       I am developing a mobile application. I am using Sync Framework v1 for devices. I can't move to Sync Framework v2 because it is not avialable for mobile devices. But, I want to use provisioning in sync framework so that I can sync only particular columns from a table. Please tell me if provisioning is supported for v1. 

    Thursday, August 4, 2011 7:43 PM

All replies

  • the v1 provider for devices is different from the provider that has the provisioning API.  there are two types of database providers for Sync Framework. the older one that's used by the Local Database Cache item in Visual Studio is the SqlCeClientSyncProvider which works with the DbServerSyncProvider. The later providers are the SqlCeSyncProvider and SqlSyncProvider. These providers differ in the way they track change metadata as well as in the way they select and apply changes.

    in your case, you can directly modify the generated code by the Wizard to only include the columns that you want synchronized (see: http://social.microsoft.com/Forums/en-US/syncdevdiscussions/thread/0f9ee2e7-0420-4cd8-8eab-99f381656f3c).

    You may also use the SqlSyncAdapterBuilder to manually build the commands yourself. See http://msdn.microsoft.com/en-us/library/bb726003.aspx

    Friday, August 5, 2011 12:51 AM