Add Sqlite database using EF Core code-first in ASP.NET CORE 5+, 6

preview_player
Показать описание
In this quick code hack moment video, we demonstrate how to easily add a local Sqlite database file to an ASP.NET Core 5+, 6 project using EF Core code-first. This code hack moment is part of a larger project demonstrating Authentication/Authorization in ASP.NET Core 5+, 6.

Code hack moments are not intended to be a complete tutorial, but is a "gist" to show how to do one particular thing.
Рекомендации по теме
Комментарии
Автор

Thanks a lot for this video. Has covered all my questions.

ak
Автор

Do you have any idea how to fix this error: "MSBuild Error MSB4006"
I have faced to this error while I wanted to run this command
dotnet ef migrations add initial -o Data

PiratesK
Автор

Thanks for the video. Great information.

jspencer
Автор

Hello. Thank you for the video :)
I'm wondering why AppUser is in Data folder - what about the Models folder?
If I have more classes (more database tables) can I just add them to Models and then mention at the top of AuthDbContext as DbSet before I do Code First?

katarzynakowalczyk
Автор

I didnt understand the OnModelCreating part. Do we need to do that for every model that we plan to update the database with?

helderperez
Автор

How can I have package manager console in visual studio code. please help.

kaulshrutikrishnakumar
Автор

Thank you for this video, it is again great and valuable informations.
Do you plan to do more videos to improve the cookie authentication for exemple with best practices for password encryption with salt, storing roles, ... ?

I know Identity exist, but i don't like it.

Camille-jmoe
join shbcf.ru