Visual interface for EF Core commands
In Entity Framework Core projects — projects where Microsoft.EntityFrameworkCore.*
5.0.0 or later is installed — JetBrains Rider helps execute dotnet EF Core commands using a visual interface. Each command has a dedicated dialog that provides fields for most arguments that are allowed, autofills most of them, and ensures that all required arguments are specified and valid.
This functionality is a visual wrapper around the dotnet ef
command; therefore, first you need to make sure that the corresponding dotnet tool
is installed and available.
When you open a solution with at least one EF Core project, JetBrains Rider will check whether the dotnet ef
is available as a local or as global tool (dotnet ef
5.0 or later is required). If not, it will prompt you to install the latest version as a global tool.

You can also install any other version using the corresponding command, for example:
dotnet tool install --global dotnet-ef
note
Visual interface for EF Core commands in only supported for projects targeting
netcoreapp3.1
and later for the Startup project, andnetstandard2.1
and later for the Migrations project.
Select Tools | Entity Framework Core | [command name] from the main menu.
Right-click the desired project in the Solution Explorer and choose Entity Framework Core | [command name].
The details of specific EF Core commands are described in the dedicated topics:
- Entity Framework Core: Add Migration
- Entity Framework Core: Remove Last Migration
- Entity Framework Core: Update Database
- Entity Framework Core: Generate SQL Script
- Entity Framework Core: Drop Database
- Entity Framework Core: Scaffold DbContext
Target frameworks:
netcoreapp3.1
and later for the Startup project, andnetstandard2.1
and later for the Migrations project.EF Core packages:
Microsoft.EntityFrameworkCore.*
5.0.0 or later.Tools:
dotnet ef
5.0 or later.
Check that the desired project satisfies the following requirements:
Microsoft.EntityFrameworkCore.Design
orMicrosoft.EntityFrameworkCore.Tools
NuGet package is installed.Project's target framework is at least
netcoreapp3.1.
If you see the following message:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-xyz does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Make sure that .dotnet/tools folder is included in the PATH
environment variable. For more information, see this troubleshooting guide.
On Windows, you can also run the .NET SDK installer with the 'Repair' option.