Search Wiki:

Microsoft Sync Framework Samples

Microsoft Sync Framework is a comprehensive synchronization platform that enables collaboration and offline access for applications, services, and devices with support for any data type, any data store, any transfer protocol, and any network topology.
For more information about Sync Framework, see the Sync Framework Developer Center

This resource page includes a number of samples that demonstrate the features and capabilities of Microsoft Sync Framework 2.0.

Sync101 Samples

This set of samples illustrates various concepts and features needed to synchronize a custom data store. The samples cover many concepts, from how to write a basic synchronization application that uses simple custom providers, to more complex scenarios, such as how to write a standard custom provider that uses Windows Communication Foundation (WCF) to synchronize data between replicas on different computers.

Sync101 with Simple Providers Shows how to synchronize replicas by using the Sync Framework simple provider API. This API gives developers a lot of the power and flexibility of the core Sync Framework APIs, but with less of a learning curve and less code, especially for replicas that have little or no change-tracking support.
Sync101 with Metadata Storage Service Shows how to use a standard custom provider to synchronize data between replicas. Uses the metadata storage service to store synchronization metadata, which greatly simplifies the synchronization process.
Sync101 with Change Units Shows how to use a standard custom provider to partition items into change units so that when only part of an item changes, only the changed part is sent during synchronization.
Sync101 with Constraint Conflicts Shows how to use a standard custom provider to report and resolve constraint conflicts that occur because of name collisions when changes are applied.
Sync101 with Custom Metadata Store Shows how to use a standard custom provider to synchronize data between replicas. Uses a custom metadata store to show all of the details of the synchronization process.
Sync101 with Change Unit Filtering Shows how to use a change unit filter with a standard custom provider to send only a subset of the change units defined for the synchronization scope.
Sync101 with Custom Filtering Shows how to track custom filters and how to use a standard custom provider to send changes from a filter-tracking replica to two different filtered replicas.
Sync101 with Remote Change Application over WCF Shows how to implement a proxy provider that uses the remote change application (RCA) pattern to synchronize over WCF with a provider on a remote computer.

Database Synchronization Provider Samples

This set of samples illustrates how to use database synchronization providers to synchronize between SQL Server databases and SQL Server Compact databases.

Database Sync: SQL Server and SQL Server Compact Shows how to use database synchronization providers to configure and execute peer-to-peer synchronization between a SQL Server database and one or more SQL Server Compact databases.
Database Sync: Peer-to-Peer over WCF Shows how to use database synchronization providers to configure and execute peer-to-peer synchronization between a SQL Server database and one or more SQL Server Compact databases by using a remote WCF service.

File Synchronization Provider Sample

File Synchronization Provider Sample This sample illustrates how to use the file synchronization provider, a fully functioning provider that helps an application to synchronize files and folders in NTFS, FAT, and SMB file systems.

Samples for Other Versions of Sync Framework


Please send all comments to the Sync Framework Forum as this page is not regularly monitored: http://social.microsoft.com/Forums/en-US/category/sync
Last edited Oct 30 at 5:09 PM  by LarenC, version 17
Comments
alexhiggins732 wrote  Jul 28 2008 at 7:31 PM  
It would be nice if it stated what versions of the .Net framework where need ass well as any additional dependencies. I have just downloaded and recieved an error about not being able to find target c:\microsoft.visualbasic.targets. I have XP SP2 with frameworks 1.1 -3.5 installed running vs2005. I take it this is a 2008 project?

Alarion wrote  Aug 12 2008 at 11:54 PM  
Indeed, it would be very nice. Not everyone has upgraded to 2008...

webooth wrote  Aug 16 2008 at 11:20 PM  
Thanks for all of the "Sync 101 - Getting Started with Sync Framework v1 samples being in C#". I get the added pleasure of translating them.

erosen03 wrote  Oct 13 2008 at 8:10 PM  
This looks great. Have you seen the SyncML specification, now incorporated by the Open Mobile Allinace's Data Synchronization Working Group? It seems that the Sync Framework would benefit from interoperability with the Data Synchronization Working Group's specs.

LakshmiNarayana wrote  Feb 25 at 5:59 AM  
Please Add Examples in VS2008 ...

shiqinqi wrote  Mar 16 at 9:41 AM  
I want to copy files from PDA(WinCe 5.0) to PC
what's the path of WinCe like "\Scan" on PC when I use ActiveSync connected my PC

Updating...
Page view tracker