EF Core Migrations Deep Dive, Applying Migration, SQL Scripts
Get the source code for this video:
Accelerate your Clean Architecture skills:
Master the Modular Monolith Architecture:
Managing database schemas as your applications grow can quickly become a headache. Manual changes are error-prone and time-consuming, which can easily lead to inconsistencies between development and production environments. I’ve seen these issues firsthand on countless projects, and they’re not pretty. How can we do better?
Enter Entity Framework (EF) Migrations, a powerful tool that lets you version your database schemas.
Imagine this: Instead of writing SQL scripts, you define your changes in code. Need to add a column? Rename a table? No problem - EF Migrations has you covered. It tracks every modification to the data model. You can review, test, and apply changes confidently, even across different environments.
EF Core Migrations: A Detailed Guide
Migration tooling:
- FluentMigrator:
- DbUp:
- Grate:
- Flyway:
Join my weekly .NET newsletter:
Read my Blog here:
Chapters
0:00 What are EF Core migrations?
2:13 Configuring an EF Entity
5:18 Creating a database migration
6:27 Creating another database migration
7:55 Applying EF Core database migrations
10:01 Generating SQL Scripts for EF migrations
12:11 Writing custom SQL in EF migrations
13:00 Additional database versioning tools
14:15 EF Core migrations best practices
1 view
508
136
2 months ago 00:16:41 1
EF Core Migrations Deep Dive, Applying Migration, SQL Scripts
2 months ago 00:03:01 1
.NET Core Web API с нуля профессионально
2 months ago 00:36:51 1
Silent Hill 2 on the GTX 1060, RTX 2060, 3060 and 4060!
3 months ago 00:15:18 5
RX 5700 XT - God of War Ragnarök - High, Medium / FSR 3.1 / FG / 3 resolutions!
3 months ago 02:31:50 1
[4K] Star Citizen - Flying over Lorville City and Exploring Planet Hurston’s Moons
3 months ago 00:02:12 1
Miyata Shoko - D-Score - FX AA - 2024 All-Japan Championships - 2022-2024 CoP
3 months ago 00:02:13 8
Manila Esposito - D-Score - FX EF - 2024 European Championships - 2022-2024 CoP
4 months ago 02:20:36 1
Paris in 1789 CE - Historical Sightseeing Walking Tour during the French Revolution (AC Unity)
4 months ago 03:28:42 1
Walking in Assassin’s Creed Origins (Ancient Egypt Tour)
4 months ago 01:07:55 1
Core + React веб-приложение | Как связать Бэкенд и Фронтенд?
5 months ago 04:27:21 1
Продолжение вчерашней истории Rust/раст
5 months ago 03:54:00 1
Exploring 9th Century Ireland in Assassin’s Creed: Valhalla
5 months ago 00:00:00 1
После отпускной раст!
5 months ago 00:00:00 1
Rust стрим, соло, небольшая игра
5 months ago 00:06:41 25
KVEF — .white_magic
6 months ago 00:06:03 1
Internal 10-Bit Sony Raw? FX30 | HOW TO & More Using DaVinci Resolve | Works for FX3 FX6 FX9
6 months ago 05:31:41 1
Космические рейнджеры/Space Rangers игра на 200% Доживём ли до вихревых пушек? #6
6 months ago 05:08:46 1
Космические рейнджеры/Space Rangers игра на 200% Коалиция восстанавливает ситуацию! #5
6 months ago 05:42:52 1
Космические рейнджеры/Space Rangers игра на 200% Последняя черта или всё же тесты и механники? #4
6 months ago 00:32:02 1
Chaveiro de crochê taça de sorvete 🍧
6 months ago 00:18:30 1
Chaveiro de crochê drinks de morango 🍓.
6 months ago 05:42:35 1
Космические рейнджеры/Space Rangers игра на 200% Подарок судьбы, или что ждёт нас дальше? #2
6 months ago 00:06:44 1
Sigma 18-35 1.8 vs 18-50 2.8 Lens DoF Comparison using the Sony FX30 a6700
7 months ago 01:08:11 1
Core MVC CRUD Operations using .NET 8 and Entity Framework Core - MVC For Beginners Tutorial