How to Configure a Download-Only Table in Dotmim.Sync? #1283
Answered
by
Mimetis
herczegzoltan
asked this question in
Q&A
-
I have successfully synced multiple tables, but I need one specific table to be download-only. I looked at the sample project, but it appears to be empty. Could someone provide an example? |
Beta Was this translation helpful? Give feedback.
Answered by
Mimetis
Dec 9, 2024
Replies: 1 comment 3 replies
-
This setup uses a Maui + Web API. Here's what I did on the client side:
I removed all migrations and deleted the existing tables on the server. Then, I added a new migration, and all tables were successfully created. After cleaning the database on the client and running the app, the sync method throws the following exception:
What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that you have changed your
SyncSetup
(by adding SyncDirection.DownloadOnly
to one table) after having made some syncs.That's why you have this error.
If you are in testing mode, I suggest to start from scratch each time you are changing your setup
You can start with a fresh backup from you database without any DMS related metadata
Or you can call a
DropAllAsync()
method to remove everything from DMS in your database, and start with a new setup