Merging migrations in Entity Framework Core 5

When working with a fast-evolving project changes happen rapidly not only to the project’s code but also to the database schema. It happens especially when working on a micro-service from the start when its purpose shifts. How EF Core 5 migrations work In Entity Framework Core 5 migrations we are adding a migration as a… Continue reading Merging migrations in Entity Framework Core 5

Adding Entity Framework Core 5 migrations to .NET 5 project

Database migrations help a developer to keep database schema up-to-date with the code. It is a core mechanism, that keeps changes in code and applies them in the database. Entity Framework Core 5 migrations are designed to keep track of DbContext class and generate migrations when you update it. Installing the tools To add EF… Continue reading Adding Entity Framework Core 5 migrations to .NET 5 project

Adding an Entity Framework Core 5 to an existing database

Entity Framework Core 5 is a light and easy to use ORM, that let you use the database without writing any SQL commands. Built-in mechanisms will translate your LINQ queries on your entity classes to SQL queries and return mapped objects. Here is an article about adding EF Core with migrations to an empty database: PrimeHotel… Continue reading Adding an Entity Framework Core 5 to an existing database

PrimeHotel – adding Entity Framework Core 5 in .NET

Let’s have a look at how to introduce Entity Framework Core 5 in ASP.NET Core project in .NET 5. We will start from an empty database, where we have a clean slate and can add tables the way we want. In this post we will work with the PrimeHotel project, that was created for learning… Continue reading PrimeHotel – adding Entity Framework Core 5 in .NET