Answered by:
Database Synchronization in WPF

Question
-
I am facing some problems in database synchronization.
I have created the 'LocalDataCache1SyncAgent' which is the agent. Using this I am specifying the clientdatabse (.sdf file) and server database( .dbo sql server).I added the tables which are needed to be synchronized. I am using the following code for accomplishing the synchronization
LocalDataCache1SyncAgent syncAgent = new LocalDataCache1SyncAgent();
syncAgent.clientAdmissionHistory.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional;
Microsoft.Synchronization.Data.SyncStatistics syncStats = syncAgent.Synchronize();
In one way synchronization working fine. After synchronizing only changes from client to server is working. I mean if i am doing any changes in
client database this changes will be reflected in the server database using the above code. But no changes is effected from server to client.
SO could you please help me to get the solution with code?Wednesday, April 20, 2011 11:21 PM
Answers
-
check out how to enable Bidirectional sync :
by default, the Local Database Cache enables Download only sync.
- Proposed as answer by Ann Tang [MSFT]Microsoft employee Thursday, April 21, 2011 5:49 PM
- Marked as answer by Mahesh DudgikarMicrosoft employee Wednesday, April 27, 2011 6:48 AM
- Edited by JuneT Wednesday, February 12, 2014 12:43 AM fix link
Wednesday, April 20, 2011 11:35 PM
All replies
-
check out how to enable Bidirectional sync :
by default, the Local Database Cache enables Download only sync.
- Proposed as answer by Ann Tang [MSFT]Microsoft employee Thursday, April 21, 2011 5:49 PM
- Marked as answer by Mahesh DudgikarMicrosoft employee Wednesday, April 27, 2011 6:48 AM
- Edited by JuneT Wednesday, February 12, 2014 12:43 AM fix link
Wednesday, April 20, 2011 11:35 PM -
Link is broken.Tuesday, February 11, 2014 11:10 PM
-
fixedWednesday, February 12, 2014 12:43 AM