How to Create a SQLite Database with Entity Framework Core in an ASP.NET Core MVC WebApp! #1

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • If you liked the content, please consider checking out my Patreon! - / membership Today we are going to start using Entity Framework Core to define and create our SQLite Database. This is part one of a multipart series. Thanks so much for watching!

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

  • @kevvaull
    @kevvaull 2 года назад +2

    This was amazing! I have looked everywhere for a article or video like this. You made me finaly understand how the connection between db and views work. Big thanks!

  • @broffutt
    @broffutt 2 года назад +1

    you, sir, are a god send

  • @legionsman7476
    @legionsman7476 2 года назад +2

    not sure if i'll get a response, but when i go to add migration and then update database, i get the following:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 26 - Error Locating Server/Instance Specified)
    any help is appreciated.

    • @ridwano.akinola811
      @ridwano.akinola811 9 месяцев назад

      Seem you used sqlserver instead of sqlite. The implementation is different

  • @Anas_Vigilante
    @Anas_Vigilante 2 года назад

    It work for me thank you man

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

    Thank's

  • @JJ-cw3ku
    @JJ-cw3ku 2 года назад +1

    Sir, Thank you for your video. But in my visual studio, when I typed add -migration, it says "The term 'add' is not recognized as the naem of a cmdlet, function, script file, or operable problem.
    Do you know how to fix this?

    • @codingunderpressure7818
      @codingunderpressure7818  2 года назад +1

      Hello, it sounds like you are using the command prompt and not the visual studio package manager console

  • @leonidascarranza7893
    @leonidascarranza7893 2 года назад

    nice video but have a question, this only work for create DB on Sqlite?, dont work if I tray to conect with a existing DB?

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

    Why the migration has some sql lite specific code, i thought the migrations were cross platform. I was thinking all you have to do is to change your DB context do a different database technology and run the migration 😅

  • @pietrononame4945
    @pietrononame4945 2 года назад

    BTW. Arrow operators make it unreadable. Hardcoded databasename and path. Please, do not USE it. BTW, how to create database automatically, in code, to be checking and creating nonexistent DB FILE on runtime.