Replies: 1 comment 6 replies
-
It looks like the only way I can get this to work, is by var serverProvider = new SqlSyncProvider("server-connection-string");
var clientProvider = new SqlSyncProvider("client-connection-string");
var setup = new SyncSetup(
"ExistingTable",
"NewTable"
);
Console.WriteLine("Will re-provision the server");
var remoteOrchestrator = new RemoteOrchestrator(serverProvider);
await remoteOrchestrator.ProvisionAsync(setup);
var localOrchestrator = new LocalOrchestrator(clientProvider);
await localOrchestrator.DeprovisionAsync(setup);
await localOrchestrator.ProvisionAsync(await remoteOrchestrator.GetScopeInfoAsync());
var agent = new SyncAgent(clientProvider, serverProvider);
Console.WriteLine("Will sync");
var result = await agent.SynchronizeAsync(setup);
Console.WriteLine(result); So my question is, if I create new tables on the server db, do I need to de-provision every client? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there. I've having a bit of a hard time understanding the correct process for handling new tables and syncing those tables.
(Note the client has already previously synced with the server.)
This is the process i've tried:
As a result of the above process:
Is there anythying I'm missing? I can't get the data in the newly created tables to sync. Thanks in advance for any advice.
This is the code i'm using:
Beta Was this translation helpful? Give feedback.
All reactions