@@RidvanGER are you saying that as long as you don't include a DB in the project, when it starts up for the first time it will create tables for models for itself? You don't need to create migrations?
@@tomsimmons4482 it depends, if you made it check for already created .DB files, right? It should be located in he startup.cs or program.cs I think, I'm also new in the mobile/web development.😅 Edit: seems most write the check in the context(example: DbContext)
@@tomsimmons4482 yes, it just works. just make sure you have a valid path if you want to start it on Windows.. I think by adding the ".." or whatever it was in the Path.Combine he wanted to show an example of a path, but it isn't working properly.
On IOS i have also problems sometimes, and i needed to install some pcl sql bundles. I was reading somethig like, Android has libs for sqlite but ios doesnt have it or something like that, so you need to add some pcl-sqlite libs to your project so Ios can use it .
Thank you, I really needed this knowledge for my project.
I tried it with MVVM but I always get the notification, that my table wasn't found.
You compiled probably a new .DB file in your debug folder with the new table inside.
@@RidvanGER are you saying that as long as you don't include a DB in the project, when it starts up for the first time it will create tables for models for itself? You don't need to create migrations?
@@tomsimmons4482 it depends, if you made it check for already created .DB files, right? It should be located in he startup.cs or program.cs I think, I'm also new in the mobile/web development.😅
Edit: seems most write the check in the context(example: DbContext)
@@tomsimmons4482 yes, it just works. just make sure you have a valid path if you want to start it on Windows.. I think by adding the ".." or whatever it was in the Path.Combine he wanted to show an example of a path, but it isn't working properly.
Where do we put our db file to on our project
weird, i cant add to MainPage constructor EDIT : lmao after 1 hour, turns out i forgot to add the transient of mainpage
Dziękujemy.
kind regards.
How about migrations?
Nice!
With maui blazor please
How to create migrations
android works but ios not
On IOS i have also problems sometimes, and i needed to install some pcl sql bundles.
I was reading somethig like, Android has libs for sqlite but ios doesnt have it or something like that, so you need to add some pcl-sqlite libs to your project so Ios can use it .