Microsoft.EntityFrameworkCore.Tools 9.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, Microsoft.EntityFrameworkCore.Tools is for PowerShell tooling that works in the Visual Studio Package Manager Console (PMC).

Usage

Install the tools package by running the following in the Visual Studio PMC:

Install-Package Microsoft.EntityFrameworkCore.Tools

The available commands are listed in the following table.

PMC Command Usage
Add-Migration Adds a new migration.
Bundle-Migration Creates an executable to update the database.
Drop-Database Drops the database.
Get-DbContext Gets information about a DbContext type.
Get-Help EntityFramework Displays information about Entity Framework commands.
Get-Migration Lists available migrations.
Optimize-DbContext Generates a compiled version of the model used by the DbContext.
Remove-Migration Removes the last migration.
Scaffold-DbContext Generates a DbContext and entity type classes for a specified database.
Script-DbContext Generates a SQL script from the DbContext. Bypasses any migrations.
Script-Migration Generates a SQL script from the migrations.
Update-Database Updates the database to the last migration or to a specified migration.

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.

Showing the top 20 packages that depend on Microsoft.EntityFrameworkCore.Tools.

Packages Downloads
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
28
CheddarAuthService
Initial package creation
25
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
25
CheddarDataService
Initial package creation
24
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
19
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
19
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
18
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
18
Microsoft.AspNetCore.App
Microsoft.AspNetCore.App
18
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. This package was built from the source at: https://github.com/aspnet/Universe/tree/244e037a222a7cd0a17feafb7f3a625fde40de97
17
Microsoft.AspNetCore.App
Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
17
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
17

Version Downloads Last updated
11.0.0 2 11/13/2026
11.0.0-rc.3.26522.148 4 11/01/2026
11.0.0-rc.2.26504.105 6 10/14/2026
11.0.0-rc.1.26425.128 11 09/10/2026
11.0.0-preview.7.26381.103 16 08/12/2026
11.0.0-preview.6.26359.118 16 07/17/2026
11.0.0-preview.5.26302.115 11 06/22/2026
11.0.0-preview.4.26230.115 10 06/22/2026
11.0.0-preview.3.26207.106 16 06/24/2026
11.0.0-preview.2.26159.112 18 06/24/2026
11.0.0-preview.1.26104.118 11 06/24/2026
10.0.15 2 11/14/2026
10.0.14 7 10/31/2026
10.0.13 8 10/14/2026
10.0.12 18 09/11/2026
10.0.11 14 08/12/2026
10.0.10 13 07/20/2026
10.0.9 13 06/23/2026
10.0.8 11 06/23/2026
10.0.7 11 06/23/2026
10.0.6 18 06/23/2026
10.0.5 17 06/23/2026
10.0.4 16 06/23/2026
10.0.3 12 06/23/2026
10.0.2 15 06/23/2026
10.0.1 20 06/23/2026
10.0.0 18 06/23/2026
10.0.0-rc.2.25502.107 19 06/22/2026
10.0.0-rc.1.25451.107 12 06/23/2026
10.0.0-preview.7.25380.108 13 06/22/2026
10.0.0-preview.6.25358.103 9 06/22/2026
10.0.0-preview.5.25277.114 17 06/22/2026
10.0.0-preview.4.25258.110 12 06/22/2026
10.0.0-preview.3.25171.6 9 06/24/2026
10.0.0-preview.2.25163.8 15 06/24/2026
10.0.0-preview.1.25081.1 18 06/23/2026
9.0.23 1 11/14/2026
9.0.22 13 10/29/2026
9.0.21 5 10/14/2026
9.0.20 14 09/11/2026
9.0.19 13 08/12/2026
9.0.18 9 07/17/2026
9.0.17 16 06/23/2026
9.0.16 8 06/23/2026
9.0.15 22 06/23/2026
9.0.14 18 06/23/2026
9.0.13 16 06/23/2026
9.0.12 17 06/23/2026
9.0.11 20 06/23/2026
9.0.10 12 06/23/2026
9.0.9 17 07/18/2026
9.0.8 11 07/18/2026
9.0.7 13 06/23/2026
9.0.6 7 06/23/2026
9.0.5 18 06/23/2026
9.0.4 14 06/23/2026
9.0.3 16 06/23/2026
9.0.2 21 06/23/2026
9.0.1 11 07/18/2026
9.0.0 19 01/07/2025
9.0.0-rc.2.24474.1 13 06/22/2026
9.0.0-rc.1.24451.1 10 06/22/2026
9.0.0-preview.7.24405.3 13 06/24/2026
9.0.0-preview.6.24327.4 11 06/24/2026
9.0.0-preview.5.24306.3 16 06/22/2026
9.0.0-preview.4.24267.1 18 06/25/2026
9.0.0-preview.3.24172.4 13 06/24/2026
9.0.0-preview.2.24128.4 9 06/22/2026
9.0.0-preview.1.24081.2 13 06/22/2026
8.0.34 2 11/13/2026
8.0.33 3 11/02/2026
8.0.32 6 10/14/2026
8.0.31 8 09/12/2026
8.0.30 11 08/12/2026
8.0.29 16 07/19/2026
8.0.28 9 06/23/2026
8.0.27 18 06/23/2026
8.0.26 13 06/23/2026
8.0.25 11 06/23/2026
8.0.24 13 06/23/2026
8.0.23 16 06/23/2026
8.0.22 17 06/23/2026
8.0.21 20 06/23/2026
8.0.20 9 06/23/2026
8.0.19 20 06/23/2026
8.0.18 18 06/23/2026
8.0.17 20 06/23/2026
8.0.16 8 06/23/2026
8.0.15 16 06/23/2026
8.0.14 16 06/23/2026
8.0.13 8 06/23/2026
8.0.12 16 06/23/2026
8.0.11 14 06/23/2026
8.0.10 103 11/05/2024
8.0.8 14 07/18/2026
8.0.7 9 07/18/2026
8.0.6 19 06/20/2024
8.0.5 15 06/23/2026
8.0.4 14 06/23/2026
8.0.3 11 06/23/2026
8.0.2 17 06/23/2026
8.0.1 20 06/25/2026
8.0.0 23 04/12/2024
8.0.0-rc.2.23480.1 17 02/09/2025
8.0.0-rc.1.23419.6 20 12/25/2023
8.0.0-preview.7.23375.4 16 01/25/2024
8.0.0-preview.6.23329.4 23 02/25/2024
8.0.0-preview.5.23280.1 14 01/28/2024
8.0.0-preview.4.23259.3 12 02/11/2024
8.0.0-preview.3.23174.2 16 04/05/2024
8.0.0-preview.2.23128.3 19 01/10/2025
8.0.0-preview.1.23111.4 15 05/27/2024
7.0.20 18 06/23/2026
7.0.19 17 06/23/2026
7.0.18 11 06/23/2026
7.0.17 16 06/23/2026
7.0.16 13 06/23/2026
7.0.15 18 06/23/2026
7.0.14 21 01/09/2024
7.0.13 16 04/29/2025
7.0.12 16 10/11/2024
7.0.11 15 03/14/2024
7.0.10 16 01/13/2025
7.0.9 20 01/08/2024
7.0.8 15 10/05/2024
7.0.7 23 12/19/2023
7.0.5 19 10/06/2024
7.0.4 20 06/15/2024
7.0.3 18 07/01/2024
7.0.2 17 06/16/2024
7.0.1 16 02/17/2025
7.0.0 13 12/19/2023
7.0.0-rc.2.22472.11 20 12/30/2023
7.0.0-rc.1.22426.7 21 08/15/2024
7.0.0-preview.7.22376.2 18 02/25/2025
7.0.0-preview.6.22329.4 14 05/23/2024
7.0.0-preview.5.22302.2 12 02/24/2024
7.0.0-preview.4.22229.2 19 05/24/2025
7.0.0-preview.3.22175.1 15 08/04/2024
7.0.0-preview.2.22153.1 10 06/07/2024
7.0.0-preview.1.22076.6 12 08/16/2024
6.0.36 17 06/23/2026
6.0.35 12 06/23/2026
6.0.33 16 06/23/2026
6.0.32 16 06/23/2026
6.0.31 18 06/23/2026
6.0.30 18 06/23/2026
6.0.29 13 06/23/2026
6.0.28 11 06/23/2026
6.0.27 19 06/23/2026
6.0.26 13 06/23/2026
6.0.25 18 10/09/2024
6.0.24 16 04/03/2024
6.0.23 12 11/28/2024
6.0.22 15 12/24/2023
6.0.21 18 12/28/2023
6.0.20 16 02/29/2024
6.0.19 12 07/28/2024
6.0.18 20 11/26/2024
6.0.16 15 04/15/2025
6.0.15 22 09/25/2024
6.0.14 27 12/14/2023
6.0.13 17 09/22/2024
6.0.12 11 12/27/2023
6.0.11 24 01/02/2024
6.0.10 15 09/13/2024
6.0.9 15 12/11/2023
6.0.8 19 08/15/2022
6.0.7 20 11/14/2024
6.0.6 15 06/16/2022
6.0.5 19 05/25/2022
6.0.4 20 07/14/2024
6.0.3 17 03/25/2022
6.0.2 17 03/02/2022
6.0.1 27 01/24/2022
6.0.0 18 11/12/2021
6.0.0-rc.2.21480.5 17 03/15/2024
6.0.0-rc.1.21452.10 12 03/01/2025
6.0.0-preview.7.21378.4 15 07/11/2024
6.0.0-preview.6.21352.1 13 01/12/2024
6.0.0-preview.5.21301.9 17 03/19/2024
6.0.0-preview.4.21253.1 18 10/11/2024
6.0.0-preview.3.21201.2 12 06/06/2024
6.0.0-preview.2.21154.2 12 06/22/2026
6.0.0-preview.1.21102.2 19 06/23/2026
5.0.17 33 08/15/2022
5.0.16 15 02/29/2024
5.0.15 19 03/25/2022
5.0.14 13 06/20/2024
5.0.13 13 11/22/2024
5.0.12 16 11/16/2021
5.0.11 13 12/22/2023
5.0.10 21 10/06/2021
5.0.9 15 06/25/2024
5.0.8 20 01/26/2024
5.0.7 22 01/19/2025
5.0.6 23 05/27/2021
5.0.5 14 08/30/2024
5.0.4 16 05/18/2024
5.0.3 19 06/19/2024
5.0.2 538 01/14/2021
5.0.1 968 02/16/2021
5.0.0 14 11/14/2021
5.0.0-rc.2.20475.6 13 06/22/2026
5.0.0-rc.1.20451.13 15 03/21/2024
5.0.0-preview.8.20407.4 15 04/24/2024
5.0.0-preview.7.20365.15 9 04/30/2025
5.0.0-preview.6.20312.4 16 06/24/2026
5.0.0-preview.5.20278.2 18 02/18/2024
5.0.0-preview.4.20220.10 13 03/02/2024
5.0.0-preview.3.20181.2 16 05/14/2025
5.0.0-preview.2.20159.4 15 05/03/2025
5.0.0-preview.2.20120.8 10 10/24/2024
3.1.32 12 10/06/2024
3.1.31 18 03/14/2025
3.1.30 19 10/05/2024
3.1.29 13 03/04/2024
3.1.28 19 10/09/2024
3.1.27 20 03/04/2024
3.1.26 18 09/22/2024
3.1.25 10 10/29/2024
3.1.24 27 12/25/2023
3.1.23 12 01/15/2024
3.1.22 13 03/04/2024
3.1.21 15 02/21/2022
3.1.20 16 06/23/2026
3.1.19 18 12/14/2023
3.1.18 21 12/30/2023
3.1.17 16 03/23/2024
3.1.16 16 10/01/2024
3.1.15 19 03/05/2024
3.1.14 17 06/23/2026
3.1.13 20 12/05/2024
3.1.12 27 02/17/2024
3.1.11 16 02/16/2025
3.1.10 14 03/02/2022
3.1.9 17 03/01/2024
3.1.8 22 11/19/2024
3.1.7 14 09/13/2024
3.1.6 17 12/25/2023
3.1.5 14 09/30/2021
3.1.4 16 07/10/2024
3.1.3 26 03/06/2021
3.1.2 28 02/24/2021
3.1.1 16 10/07/2024
3.1.0 23 02/21/2022
3.1.0-preview3.19554.8 14 10/09/2024
3.1.0-preview2.19525.5 14 09/10/2024
3.1.0-preview1.19506.2 15 02/17/2024
3.0.3 19 12/24/2023
3.0.2 16 06/30/2024
3.0.1 19 02/22/2024
3.0.0 24 12/13/2023
3.0.0-rc1.19456.14 20 04/15/2024
3.0.0-preview9.19423.6 23 03/23/2024
3.0.0-preview8.19405.11 15 04/25/2024
3.0.0-preview7.19362.6 16 12/05/2024
3.0.0-preview6.19304.10 19 05/29/2024
3.0.0-preview5.19227.1 14 02/25/2025
3.0.0-preview4.19216.3 22 01/02/2024
3.0.0-preview3.19153.1 13 04/24/2025
3.0.0-preview.19074.3 15 04/21/2025
3.0.0-preview.18572.1 13 06/22/2026
2.3.0 12 07/18/2026
2.2.6 18 03/02/2022
2.2.4 17 04/08/2024
2.2.3 18 11/19/2024
2.2.2 17 03/23/2024
2.2.1 20 01/06/2024
2.2.0 19 03/12/2024
2.2.0-preview3-35497 14 06/23/2026
2.2.0-preview2-35157 10 07/19/2026
2.2.0-preview1-35029 14 07/19/2026
2.1.14 11 06/23/2026
2.1.11 13 08/26/2024
2.1.8 9 06/23/2026
2.1.4 18 12/30/2023
2.1.3 11 01/04/2025
2.1.2 19 12/14/2023
2.1.1 22 09/03/2021
2.1.0 19 11/18/2021
2.1.0-rc1-final 25 12/28/2023
2.1.0-preview2-final 13 09/20/2024
2.1.0-preview1-final 15 03/13/2025
2.0.3 16 06/10/2024
2.0.2 13 12/20/2024
2.0.1 21 12/24/2023
2.0.0 12 03/17/2024
2.0.0-preview2-final 12 04/29/2025
2.0.0-preview1-final 14 01/10/2024
1.1.6 20 01/16/2024
1.1.5 17 03/02/2022
1.1.4 13 03/15/2024
1.1.2 17 12/25/2023
1.1.1 16 09/20/2024
1.1.0 14 04/06/2025
1.1.0-preview4-final 11 02/07/2024
1.1.0-msbuild3-final 13 04/11/2025
1.0.3 13 05/20/2024
1.0.2 13 09/20/2024
1.0.1 23 02/16/2024
1.0.0 16 01/08/2024
1.0.0-preview4-final 14 03/28/2024
1.0.0-preview3-final 13 04/23/2025
1.0.0-preview2-final 17 04/19/2024
1.0.0-preview1-final 17 04/24/2024
1.0.0-msbuild3-final 18 10/28/2024
1.0.0-msbuild2-final 13 03/29/2025
1.0.0-msbuild1-final 25 05/04/2024