dotnet ef
The EF Core command-line tool for creating and applying migrations, installed as a dotnet tool and used with the Design package in the project.
In more detail
Install it once with dotnet tool install --global dotnet-ef. It builds your project to discover the DbContext before generating code.
Related terms
- database migration — A scripted, versioned change to a database's structure, such as adding a table or a constraint.
- Entity Framework Core — Microsoft's object-relational mapper for .NET, which lets code query and save database data as C# objects and translates LINQ into SQL.
- dotnet CLI — The dotnet command-line tool that creates, restores, builds, runs, tests and publishes .NET projects.
Taught in
- Entity Framework Core: Code First and Migrations — Modern .NET Core, C# & Enterprise Microservices