How to Implement Code-First Migrations with Entity Framework Core

How to Implement Code-First Migrations with Entity Framework Core

Tech With Pat

2 года назад

7,543 Просмотров

How to Use Entity Framework Core Code First Migrations

In this video, I will show you how to use Entity Framework Core Code First Migrations to keep a model and the database in sync.

Subscribe: https://www.youtube.com/c/TechWithPat?sub_confirmation=1
Buy me a coffee: https://www.buymeacoffee.com/itsmepatrick

TIMESTAMPS :
00:00 Intro
03:42 Create the database using Migration
06:37 Update the database with a Migration
07:42 Revert to previous migration
10:10 Rollback to a specific migration
12:03 Listing migrations
13:29 Raw SQL in a migration
15:12 Generates a SQL script
15:41 Outro

Where you can find me:
💻 Github: https://github.com/techwithpat
🌐 Website: https://www.techwithpat.com
🕴️ LinkedIn: https://www.linkedin.com/in/patrick-tshibanda-431017135/

#efcore

Тэги:

#entity_framework_core_code_first_migrations #entity_framework #code_first #entity_framework_core #code_first_migrations #entity_framework_core_migrations #entity_framework_tutorial #entity_framework_migrations
Ссылки и html тэги не поддерживаются


Комментарии:

J Boss
J Boss - 23.07.2023 21:59

Very well explained and comprehensive. Thank you.

Ответить
R. Mike
R. Mike - 24.05.2023 17:50

This is really great! Probably the only tutorial I understood something from on Efcore. Thank you.

Ответить
Андрей Шемшура
Андрей Шемшура - 07.01.2023 13:29

Realy useful tutorial! Thanks a lot! Could you make a video about automated migration?

Ответить
Gabriel Recio
Gabriel Recio - 05.01.2023 21:52

Excellent very usefull, thank you!

Ответить
just mumble
just mumble - 10.06.2022 14:29

rahmet bro

Ответить
Tech 'n' Tricks
Tech 'n' Tricks - 06.05.2022 20:58

Thanks for this, Will it be automatically execute in production or do we need to run any command.

Ответить
Ali Al-Rubaie
Ali Al-Rubaie - 07.03.2022 19:41

Well done

Ответить
Edward1NN0C3NTV5
Edward1NN0C3NTV5 - 07.03.2022 16:00

I just started learning EF, this is a great help!

Ответить
Antonio Del Aguila
Antonio Del Aguila - 07.03.2022 04:53

Cool

Ответить
Antonio Del Aguila
Antonio Del Aguila - 07.03.2022 04:52

Cool

Ответить
Azim Lit.
Azim Lit. - 06.03.2022 22:17

Thank you

Ответить