Posts

.Net Core 3.0 EF Core migrations

With the release of .Net Core 3.0, there are some changes made how ef core 3.0 migrations work. 1. You need to install ef tools for .Net Core with the following command. dotnet tool install --global dotnet-ef 2. You need to add NuGet package  Microsoft.EntityFrameworkCore.Design with 3.x version. 3. Now it is same as with .Net Core 2.2. All dotnet ef commands work. Note: If your DbContext is in a class library you need to specify --startup-project option for every dotnet ef command. Startup project must be a .Net Core console app or web app.