Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I am using local database cache using Visual studio 2010 dialogue Box by referring this tutorial. When i run code for synchronization by following all the steps as specified in tutorial everything works, I also get updated result but my local database(Compact) is still not updated. Is it selecting values from SQL server?. If not then why my local database is not updated. Someone told me changing `Copy to output directory to Copy always` will help out but i am ended with no solution.

What these two line of code do.

C#
// Call SyncAgent.Synchronize() to initiate the synchronization process.
           // Synchronization only updates the local database, not your project's data source.
           LocalDataCache1SyncAgent syncAgent = new LocalDataCache1SyncAgent();
           Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();


If they do what is explained in comments then why my local database is not updated.
Posted
Updated 22-Apr-14 23:50pm
v2
Comments
Herman<T>.Instance 23-Apr-14 5:50am    
you have to define what it has to Synchronize

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900