-
When I try to sync multiple client sqlite databases, it overwrites the other clients data in de server database. How do I fix this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Are you using identity auto increment primary keys ? |
Beta Was this translation helpful? Give feedback.
-
I create the database with Database.EnsureCreated(); Nothing works. Can you help me? |
Beta Was this translation helpful? Give feedback.
your Id in table User is auto increment, that's why multiple clients will insert new user with same identity key, that will sync as an update and not an insert
if you want to work with multiple clients change your primary keys from int to guid