Source Code: https://github.com/shady78/MasterCrudOp
In this video, we will start working with Entity Framework Core 10 Migrations in our .NET 10 Web API project.
After creating our MovieDbContext and configuring the connection string, the next step is to generate the database schema automatically using Code First Migrations.
🔥 In this lesson, you will learn:
What is EF Core Migration
How to generate the first migration (InitialCreate)
How EF Core creates tables based on your entities
How to update PostgreSQL database using dotnet ef database update
Where EF Core stores migration files and snapshots
Best practices when working with migrations in real projects
🛑 Note:
Make sure PostgreSQL is running (Docker container or local installation) before applying the migration.
🚀 Technologies used in this series:
✅ ASP.NET Core Web API (.NET 10)
✅ EF Core 10
✅ PostgreSQL
✅ Docker
✅ Minimal APIs
✅ Domain Driven Design (DDD)
🔗 Useful Links:
EF Core Migrations Docs: https://learn.microsoft.com/en-us/ef/...
.NET SDK: https://dotnet.microsoft.com/en-us/do...
PostgreSQL: https://www.postgresql.org/
Npgsql Provider: https://www.npgsql.org/efcore/
💬 If you face any migration errors, feel free to ask in the comments!
#dotnet #efcore #postgresql #migrations #csharp #aspnetcore #webapi #docker