How to Implement Code-First Migrations with Entity Framework Core

Опубликовано: 07 Апрель 2026
на канале: Tech With Pat
9,100
186

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...
Buy me a coffee: https://www.buymeacoffee.com/itsmepat...

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:   / patrick-tshibanda-431017135  

#efcore