Microsoft.EntityFrameworkCore.Tools 9.0.1

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 9.0.1                
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 9.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.EntityFrameworkCore.Tools --version 9.0.1                
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 9.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.EntityFrameworkCore.Tools as a Cake Addin
#addin nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=9.0.1

// Install Microsoft.EntityFrameworkCore.Tools as a Cake Tool
#tool nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=9.0.1                

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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (291)

Showing the top 5 NuGet packages that depend on Microsoft.EntityFrameworkCore.Tools:

Package Downloads
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.

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.

ImmediaC.SimpleCms

ASP.NET Core based CMS

StatisticManagers-CMS

Page Display Auth Process

TrueSight

Package Description

GitHub repositories (509)

Showing the top 5 popular GitHub repositories that depend on Microsoft.EntityFrameworkCore.Tools:

Repository Stars
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
Version Downloads Last updated
9.0.2 68,567 2/11/2025
9.0.1 582,666 1/14/2025
9.0.0 2,012,947 11/12/2024
9.0.0-rc.2.24474.1 65,156 10/8/2024
9.0.0-rc.1.24451.1 37,036 9/10/2024
9.0.0-preview.7.24405.3 20,232 8/13/2024
9.0.0-preview.6.24327.4 19,810 7/9/2024
9.0.0-preview.5.24306.3 13,531 6/11/2024
9.0.0-preview.4.24267.1 15,318 5/21/2024
9.0.0-preview.3.24172.4 104,422 4/11/2024
9.0.0-preview.2.24128.4 23,762 3/12/2024
9.0.0-preview.1.24081.2 40,557 2/13/2024
8.0.13 34,256 2/11/2025
8.0.12 282,345 1/14/2025
8.0.11 1,903,837 11/12/2024
8.0.10 4,592,533 10/8/2024
8.0.8 6,319,598 8/13/2024
8.0.7 4,190,776 7/9/2024
8.0.6 4,981,597 5/28/2024
8.0.5 1,935,926 5/14/2024
8.0.4 5,168,509 4/9/2024
8.0.3 3,576,788 3/12/2024
8.0.2 4,411,610 2/13/2024
8.0.1 3,872,171 1/9/2024
8.0.0 5,370,067 11/14/2023
8.0.0-rc.2.23480.1 71,268 10/10/2023
8.0.0-rc.1.23419.6 38,451 9/12/2023
8.0.0-preview.7.23375.4 30,470 8/8/2023
8.0.0-preview.6.23329.4 41,446 7/11/2023
8.0.0-preview.5.23280.1 37,989 6/13/2023
8.0.0-preview.4.23259.3 34,888 5/16/2023
8.0.0-preview.3.23174.2 63,042 4/11/2023
8.0.0-preview.2.23128.3 35,497 3/14/2023
8.0.0-preview.1.23111.4 77,213 2/21/2023
7.0.20 787,345 5/28/2024
7.0.19 155,087 5/14/2024
7.0.18 451,518 4/9/2024
7.0.17 388,019 3/12/2024
7.0.16 539,557 2/13/2024
7.0.15 827,461 1/9/2024
7.0.14 1,765,770 11/14/2023
7.0.13 2,064,647 10/24/2023
7.0.12 1,562,250 10/10/2023
7.0.11 3,261,137 9/12/2023
7.0.10 3,264,183 8/8/2023
7.0.9 2,602,896 7/11/2023
7.0.8 2,189,952 6/22/2023
7.0.7 1,041,893 6/13/2023
7.0.5 6,998,508 4/11/2023
7.0.4 3,148,250 3/14/2023
7.0.3 3,898,986 2/14/2023
7.0.2 4,754,329 1/10/2023
7.0.1 2,850,619 12/13/2022
7.0.0 3,540,167 11/7/2022
7.0.0-rc.2.22472.11 76,685 10/11/2022
7.0.0-rc.1.22426.7 35,160 9/14/2022
7.0.0-preview.7.22376.2 31,334 8/9/2022
7.0.0-preview.6.22329.4 23,592 7/12/2022
7.0.0-preview.5.22302.2 20,924 6/14/2022
7.0.0-preview.4.22229.2 26,720 5/10/2022
7.0.0-preview.3.22175.1 42,504 4/13/2022
7.0.0-preview.2.22153.1 17,141 3/14/2022
7.0.0-preview.1.22076.6 13,682 2/17/2022
6.0.36 122,173 11/12/2024
6.0.35 126,286 10/8/2024
6.0.33 256,441 8/13/2024
6.0.32 185,044 7/9/2024
6.0.31 253,786 5/28/2024
6.0.30 146,815 5/14/2024
6.0.29 474,922 4/9/2024
6.0.28 471,804 3/12/2024
6.0.27 479,828 2/13/2024
6.0.26 664,633 1/9/2024
6.0.25 1,015,740 11/14/2023
6.0.24 490,318 10/24/2023
6.0.23 453,208 10/10/2023
6.0.22 959,264 9/12/2023
6.0.21 991,283 8/8/2023
6.0.20 959,730 7/11/2023
6.0.19 615,671 6/22/2023
6.0.18 443,953 6/13/2023
6.0.16 2,267,395 4/11/2023
6.0.15 1,232,840 3/14/2023
6.0.14 1,618,553 2/14/2023
6.0.13 2,297,829 1/10/2023
6.0.12 1,998,183 12/13/2022
6.0.11 3,207,858 11/7/2022
6.0.10 5,670,233 10/11/2022
6.0.9 4,859,036 9/13/2022
6.0.8 6,347,627 8/9/2022
6.0.7 6,201,090 7/12/2022
6.0.6 3,862,802 6/14/2022
6.0.5 6,084,871 5/10/2022
6.0.4 4,534,312 4/11/2022
6.0.3 5,096,264 3/8/2022
6.0.2 4,212,738 2/8/2022
6.0.1 6,826,347 12/14/2021
6.0.0 7,278,114 11/8/2021
6.0.0-rc.2.21480.5 55,329 10/12/2021
6.0.0-rc.1.21452.10 57,495 9/14/2021
6.0.0-preview.7.21378.4 38,937 8/10/2021
6.0.0-preview.6.21352.1 19,973 7/14/2021
6.0.0-preview.5.21301.9 36,631 6/15/2021
6.0.0-preview.4.21253.1 19,051 5/24/2021
6.0.0-preview.3.21201.2 38,826 4/8/2021
6.0.0-preview.2.21154.2 14,729 3/11/2021
6.0.0-preview.1.21102.2 31,521 2/12/2021
5.0.17 2,354,867 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 442,764 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 705,299 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 902,037 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,399,878 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,642,262 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,118,920 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,904,510 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,214,077 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,044,269 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,480,265 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,692,599 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,669,010 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,533,046 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,428,539 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,467,563 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,265,377 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,445,657 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 70,265 10/13/2020
5.0.0-rc.1.20451.13 53,132 9/14/2020
5.0.0-preview.8.20407.4 33,852 8/25/2020
5.0.0-preview.7.20365.15 32,846 7/21/2020
5.0.0-preview.6.20312.4 32,353 6/25/2020
5.0.0-preview.5.20278.2 16,062 6/10/2020
5.0.0-preview.4.20220.10 26,510 5/18/2020
5.0.0-preview.3.20181.2 38,564 4/23/2020
5.0.0-preview.2.20159.4 26,330 4/2/2020
5.0.0-preview.2.20120.8 14,500 3/16/2020
3.1.32 884,462 12/13/2022
3.1.31 168,735 11/8/2022
3.1.30 213,226 10/11/2022
3.1.29 619,195 9/13/2022
3.1.28 141,507 8/9/2022
3.1.27 115,640 7/12/2022
3.1.26 160,594 6/14/2022
3.1.25 323,901 5/10/2022
3.1.24 158,814 4/11/2022
3.1.23 384,833 3/8/2022
3.1.22 889,442 12/14/2021
3.1.21 982,168 11/7/2021
3.1.20 336,843 10/11/2021
3.1.19 581,837 9/14/2021
3.1.18 878,190 8/10/2021
3.1.17 546,503 7/13/2021
3.1.16 585,297 6/8/2021
3.1.15 794,083 5/11/2021
3.1.14 967,177 4/6/2021
3.1.13 1,195,444 3/9/2021
3.1.12 1,045,515 2/9/2021
3.1.11 1,384,638 1/12/2021
3.1.10 2,326,077 11/9/2020
3.1.9 3,443,391 10/13/2020
3.1.8 5,113,766 9/8/2020
3.1.7 3,013,155 8/11/2020
3.1.6 3,463,927 7/14/2020
3.1.5 4,269,063 6/9/2020
3.1.4 4,201,221 5/12/2020
3.1.3 5,785,260 3/24/2020
3.1.2 4,138,359 2/19/2020
3.1.1 4,118,844 1/14/2020
3.1.0 4,479,815 12/3/2019
3.1.0-preview3.19554.8 37,777 11/13/2019
3.1.0-preview2.19525.5 15,571 11/1/2019
3.1.0-preview1.19506.2 785,494 10/15/2019
3.0.3 51,816 2/19/2020
3.0.2 32,472 1/14/2020
3.0.1 478,479 11/18/2019
3.0.0 4,554,381 9/23/2019
3.0.0-rc1.19456.14 22,814 9/16/2019
3.0.0-preview9.19423.6 39,132 9/4/2019
3.0.0-preview8.19405.11 43,102 8/13/2019
3.0.0-preview7.19362.6 30,422 7/23/2019
3.0.0-preview6.19304.10 39,569 6/12/2019
3.0.0-preview5.19227.1 47,876 5/6/2019
3.0.0-preview4.19216.3 9,168 4/18/2019
3.0.0-preview3.19153.1 29,818 3/6/2019
3.0.0-preview.19074.3 16,024 1/29/2019
3.0.0-preview.18572.1 14,534 12/3/2018
2.3.0 672 1/14/2025
2.2.6 10,680,415 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,751,623 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,772,388 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,010,798 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,592,654 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 10,958,010 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,393 10/17/2018
2.2.0-preview2-35157 68,347 9/12/2018
2.2.0-preview1-35029 18,192 8/22/2018
2.1.14 2,042,135 11/18/2019
2.1.11 1,828,841 5/14/2019
2.1.8 2,218,036 2/12/2019
2.1.4 6,786,017 10/1/2018
2.1.3 3,214,244 9/11/2018
2.1.2 2,485,288 8/21/2018
2.1.1 11,646,797 6/18/2018
2.1.0 4,626,943 5/29/2018
2.1.0-rc1-final 51,710 5/6/2018
2.1.0-preview2-final 68,066 4/10/2018
2.1.0-preview1-final 204,207 2/26/2018
2.0.3 4,096,498 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,149,408 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,752,857 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,105,542 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 63,869 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 36,980 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 68,371 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 177,733 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 20,269 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 63,446 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 719,191 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 283,553 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 328,047 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 47,997 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 14,774 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,540 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 14,977 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 462,508 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 29,832 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,264 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 383,879 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 63,776 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 36,707 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 11,406 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 16,571 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.