Replies: 1 comment 4 replies
-
Read the docs for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm using moor for a long time, but I have a weird issue recently.
I have a table with primaryKey like below :
and in BooksDao I have this function :
as you can see we expect to see same result for 'entry Id' and 'db Id'.
first time that I add a book to bookmark it's correct and when I'm in same page it works good but when I go back and re-enter again and tap on addToBookmark I got different Ids for output.
I don't know what's problem
I access to Dao like this :
final BooksDao dbHelper = BooksDao(locator<MyDatabase>());
I used Provider as well.
It seems when I make an instance for Dao I have a problem, if the book wasn't in database so it's not conflict and ids are correct .
Beta Was this translation helpful? Give feedback.
All reactions