dotnet-ef 8.0.4
The Entity Framework Core tools help with design-time development tasks. They're primarily used to manage Migrations and to scaffold a DbContext and entity types by reverse engineering the schema of a database.
This package, dotnet-ef is for cross-platform command line tooling that can be used anywhere.
Usage
Install the tool package using:
dotnet tool install --global dotnet-ef
The available commands are listed in the following table.
| Command | Usage |
|---|---|
| dotnet ef --help | Displays information about Entity Framework commands. |
| dotnet ef database drop | Drops the database. |
| dotnet ef database update | Updates the database to the last migration or to a specified migration |
| dotnet ef dbcontext info | Gets information about a DbContext type. |
| dotnet ef dbcontext list | Lists available DbContext types. |
| dotnet ef dbcontext optimize | Generates a compiled version of the model used by the DbContext. |
| dotnet ef dbcontext scaffold | Generates a DbContext and entity type classes for a specified database. |
| dotnet ef dbcontext script | Generates a SQL script from the DbContext. Bypasses any migrations. |
| dotnet ef migrations add | Adds a new migration. |
| dotnet ef migrations bundle | Creates an executable to update the database. |
| dotnet ef migrations has-pending-model-changes | Checks if any changes have been made to the model since the last migration. |
| dotnet ef migrations list | Lists available migrations. |
| dotnet ef migrations remove | Removes the last migration. |
| dotnet ef migrations script | Generates a SQL script from the migrations. |
Getting started with EF Core
See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.
Feedback
If you encounter a bug or issues with this package,you can open an Github issue. For more details, see getting support.
This package has no dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 9.0.0-preview.3.24172.4 | 27 | 2024/5/10 |
| 8.0.4 | 16 | 2024/5/10 |
| 8.0.0-rc.2.23480.1 | 11 | 2024/5/10 |
| 7.0.10 | 10 | 2023/8/18 |
| 6.0.7 | 11 | 2022/7/18 |
| 6.0.4 | 20 | 2022/5/4 |
| 3.1.0-preview3.19554.8 | 11 | 2024/5/10 |
| 3.0.0-rc1.19456.14 | 16 | 2024/5/10 |
| 3.0.0-preview.19074.3 | 11 | 2024/5/10 |
| 2.2.0-preview3-35497 | 12 | 2024/5/10 |