The regular code snippet of syncing data with sync framework is this:
LocalDBSyncAgent syncAgent = new LocalDBSyncAgent(); Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();
Do anynody knows a way to sync a subset of my tables. Note not the data inside each table but the decide which tables would be involved in the synchronization.
Thanks Ariel
Yes, you absolutely can.
Create a SyncTable for each table you want to sync, and add it to the Configuration.SyncTables in the SyncAgent.
I found this article from Bill Ryan very instructive. He goes into how to filter data within each table, but there is stuff in there that does what you are looking for.
Sample from Bill Ryan: