Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade 0.9.4 => 0.9.8. What to do with WebServerOrchestrator.OnTableChangesApplying & OnTableChangesSelected for setting/removing UserId #1132

Open
Tuytje opened this issue Jan 9, 2024 · 1 comment

Comments

@Tuytje
Copy link

Tuytje commented Jan 9, 2024

I'm upgrading from 0.9.4 to 0.9.8 for a Xamarin Forms app with a ASP.NET Webserver as backend

I'm using WebServerOrchestrator.OnTableChangesApplying & WebServerOrchestrator.OnTableChangesSelected to set & remove the UserId.

This is not available anymore in v0.9.8, I have found that I can get the Orchestrator via WebServerAgent.RemoteOrchestrator & that that one has a OnTableChangesSelected & a OnTableChangesApplying, so I'm guessing I need to use those methods to update the rows with the UserId.

With the old method I could set/remove the userId by using:

foreach (var row in args.SyncRows)
    row[USER_ID_COLUMN] = userId;

How can I access those SyncRows in the new method (with args TableChangesApplyingArgs & TableChangesSelectedArgs)?

@Tuytje
Copy link
Author

Tuytje commented Jan 18, 2024

I suspect that I might be able to use
WebServerAgent.RemoteOrchestrator.OnRowsChangesApplying & WebServerAgent.RemoteOrchestrator.OnRowsChangesSelected

Stil having some other issues, so I can't fully test yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant