Using EF Core with SQLite in .NET MAUI

Поделиться
HTML-код
  • Опубликовано: 17 окт 2024

Комментарии • 16

  • @elijahdetilisi1148
    @elijahdetilisi1148 Год назад

    Thank you, I really needed this knowledge for my project.

  • @schurli1614
    @schurli1614 11 месяцев назад +3

    I tried it with MVVM but I always get the notification, that my table wasn't found.

    • @RidvanGER
      @RidvanGER 9 месяцев назад

      You compiled probably a new .DB file in your debug folder with the new table inside.

    • @tomsimmons4482
      @tomsimmons4482 8 месяцев назад +1

      @@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?

    • @RidvanGER
      @RidvanGER 8 месяцев назад

      @@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)

    • @fulgadan3199
      @fulgadan3199 6 месяцев назад

      @@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.

  • @boras1
    @boras1 5 месяцев назад +1

    Where do we put our db file to on our project

  • @enricoroselino7557
    @enricoroselino7557 8 месяцев назад

    weird, i cant add to MainPage constructor EDIT : lmao after 1 hour, turns out i forgot to add the transient of mainpage

  • @SMYS
    @SMYS 7 месяцев назад +1

    Dziękujemy.

  • @TheJabukasiga
    @TheJabukasiga 5 месяцев назад

    How about migrations?

  • @mewmew5125
    @mewmew5125 Год назад

    Nice!

  • @TheErudito
    @TheErudito Год назад +3

    With maui blazor please

  • @Exo5432
    @Exo5432 4 месяца назад

    How to create migrations

  • @enricoroselino7557
    @enricoroselino7557 8 месяцев назад

    android works but ios not

    • @stefanvogel9770
      @stefanvogel9770 7 месяцев назад +1

      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 .