Entity Framework Core Migrations with ASP.NET Core in C#

preview_player
Показать описание
How to use Entity Framework Core Migrations in an ASP.NET Core Web Application in C#. Discover which EF NuGet packages you need, how to create the initial migration, and how to add additional database schema objects with additional migrations.

Project on Azure DevOps/Git:

Blog article on using your own database schema with the ASP.NET Core Identity Model:

#EntityFramework #AspNet #DotNet
Рекомендации по теме
Комментарии
Автор

Thank you, nice video to refresh my mind and remember at the basic level how all this works. I did this once to my project and never more and now that I'm starting another project I forgot all those small details to make it work.

vladimir.rivera
Автор

I've been banging my head for several days but your tutorial solved my problem right away. Many thanks, dude!

hqoxhpm
Автор

Many thanks, David. Was really helpful and super quickly introduction. As all the tutorials should be.... congratulations

jorgetinocomx
Автор

Thank man. I'll never find out that the property "all" has to be removed. Thank you!

odairto
Автор

Thanks a lot, it's very useful.

myminka
Автор

Thanks a lot man! You are a life saver :)

harishb
Автор

You could build a second project with just an appsetting in it to connect the database for migration AFAIK. This is how AspNetBoilerPlate builds their migration project.

monteb
Автор

excelent video, it would be usefull to my
but the link in the description doesn't work, can you fix it please? i'm curious of the project in web, thanks

Gabs
Автор

this is nice but somebody needs to do deployment migration with frequent entity changes

biniteshome
Автор

I have an error when run Add-Migration
Error message is "The specified deps.json [D:\%^&*%^&*%&*\deps.json] does not exist"
I google that qusetion and didn't find solution..

lin
Автор

Many thanks for the video, is there another video showing how to change an existing table?

SHAMITHADEVINDA
Автор

Hi, can someone advise how I can add a table from the SQL Server to my VS? Basically I scaffolded the database, but one table is missing.

bakshev
Автор

At offset=1:10 you show the flawed MS text offering "Script-Migrations", but don't be fooled as the package is Script-Migration

DickBakerSql
Автор

Had a question If I have already completed my initial add-migration, update-database commands and I want to go back into my Model and add a few additional properties would I just need to run update-database again and the new fields would then be added to my already existing SQL schema?

longlancer
Автор

You sound like Bob Odenkirk. Great video though

terrancetm
Автор

great stuff. it would be great if the font was bigger so it would look ok on a 720p resolution (15.6'' laptop)

amitzohar