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
509
136
7 years ago 00:40:58 33
Еntity Framework Core 2.0. Начало работы с EF Core. Урок 1
1 year ago 00:13:28 1
МЕТОД SAVECHANGES В EF CORE
2 years ago 00:12:36 12
КАК РАБОТАЕТ МЕТОД SAVECHANGES В EF CORE
3 years ago 03:04:05 7
Конфигурируем схему данных с помощью EF core
7 years ago 00:17:04 7
Еntity Framework Core 2.0. Создание моделей в EF Core. Урок 2
4 years ago 00:12:18 1
EF core - code first concept | Explained | C#
1 year ago 00:14:06 8
Андрей Александров «Вкусные новинки EF Core 8»
3 years ago 02:35:02 18
Работа с БД через EF Core | для чего нужен AutoMapper
6 months ago 00:16:41 1
EF Core Migrations Deep Dive, Applying Migration, SQL Scripts
1 year ago 01:36:57 3
CRUD веб приложение на Core, React, EF Core, Postgresql с чистой архитектурой
4 years ago 00:20:00 1
NET Core Empty Web App to MVC App with EF core | Easy Migration
3 years ago 00:38:23 9
“Что нового в EF Core 6“ Семен Кирносенко / .NET Conference Day 2