Microsoft.EntityFrameworkCore.Tools 9.0.1

Prefix Reserved
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 (288)

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 (507)

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.1 2 1/14/2025
9.0.0 1,396,408 11/12/2024
9.0.0-rc.2.24474.1 57,873 10/8/2024
9.0.0-rc.1.24451.1 34,322 9/10/2024
9.0.0-preview.7.24405.3 19,704 8/13/2024
9.0.0-preview.6.24327.4 19,127 7/9/2024
9.0.0-preview.5.24306.3 13,297 6/11/2024
9.0.0-preview.4.24267.1 14,781 5/21/2024
9.0.0-preview.3.24172.4 103,337 4/11/2024
9.0.0-preview.2.24128.4 23,060 3/12/2024
9.0.0-preview.1.24081.2 39,264 2/13/2024
8.0.12 0 1/14/2025
8.0.11 1,253,692 11/12/2024
8.0.10 3,823,993 10/8/2024
8.0.8 5,677,923 8/13/2024
8.0.7 3,876,428 7/9/2024
8.0.6 4,676,862 5/28/2024
8.0.5 1,821,467 5/14/2024
8.0.4 4,869,035 4/9/2024
8.0.3 3,406,254 3/12/2024
8.0.2 4,140,575 2/13/2024
8.0.1 3,730,793 1/9/2024
8.0.0 5,148,207 11/14/2023
8.0.0-rc.2.23480.1 70,607 10/10/2023
8.0.0-rc.1.23419.6 38,193 9/12/2023
8.0.0-preview.7.23375.4 30,281 8/8/2023
8.0.0-preview.6.23329.4 40,866 7/11/2023
8.0.0-preview.5.23280.1 37,760 6/13/2023
8.0.0-preview.4.23259.3 34,361 5/16/2023
8.0.0-preview.3.23174.2 61,426 4/11/2023
8.0.0-preview.2.23128.3 35,005 3/14/2023
8.0.0-preview.1.23111.4 77,019 2/21/2023
7.0.20 711,373 5/28/2024
7.0.19 145,599 5/14/2024
7.0.18 429,238 4/9/2024
7.0.17 375,464 3/12/2024
7.0.16 523,969 2/13/2024
7.0.15 806,112 1/9/2024
7.0.14 1,721,986 11/14/2023
7.0.13 2,030,695 10/24/2023
7.0.12 1,530,228 10/10/2023
7.0.11 3,206,884 9/12/2023
7.0.10 3,215,283 8/8/2023
7.0.9 2,551,150 7/11/2023
7.0.8 2,165,287 6/22/2023
7.0.7 1,029,465 6/13/2023
7.0.5 6,899,491 4/11/2023
7.0.4 3,110,317 3/14/2023
7.0.3 3,847,737 2/14/2023
7.0.2 4,649,995 1/10/2023
7.0.1 2,815,994 12/13/2022
7.0.0 3,496,386 11/7/2022
7.0.0-rc.2.22472.11 75,901 10/11/2022
7.0.0-rc.1.22426.7 34,728 9/14/2022
7.0.0-preview.7.22376.2 31,070 8/9/2022
7.0.0-preview.6.22329.4 23,136 7/12/2022
7.0.0-preview.5.22302.2 20,519 6/14/2022
7.0.0-preview.4.22229.2 26,343 5/10/2022
7.0.0-preview.3.22175.1 42,315 4/13/2022
7.0.0-preview.2.22153.1 16,775 3/14/2022
7.0.0-preview.1.22076.6 13,576 2/17/2022
6.0.36 80,010 11/12/2024
6.0.35 108,233 10/8/2024
6.0.33 227,480 8/13/2024
6.0.32 174,056 7/9/2024
6.0.31 240,794 5/28/2024
6.0.30 137,326 5/14/2024
6.0.29 454,661 4/9/2024
6.0.28 450,794 3/12/2024
6.0.27 458,449 2/13/2024
6.0.26 646,568 1/9/2024
6.0.25 989,518 11/14/2023
6.0.24 479,497 10/24/2023
6.0.23 445,881 10/10/2023
6.0.22 931,701 9/12/2023
6.0.21 969,295 8/8/2023
6.0.20 936,851 7/11/2023
6.0.19 604,146 6/22/2023
6.0.18 437,151 6/13/2023
6.0.16 2,230,986 4/11/2023
6.0.15 1,218,128 3/14/2023
6.0.14 1,597,097 2/14/2023
6.0.13 2,274,065 1/10/2023
6.0.12 1,961,379 12/13/2022
6.0.11 3,171,571 11/7/2022
6.0.10 5,600,336 10/11/2022
6.0.9 4,808,239 9/13/2022
6.0.8 6,281,221 8/9/2022
6.0.7 6,117,190 7/12/2022
6.0.6 3,822,820 6/14/2022
6.0.5 6,035,409 5/10/2022
6.0.4 4,490,650 4/11/2022
6.0.3 5,059,881 3/8/2022
6.0.2 4,177,891 2/8/2022
6.0.1 6,769,652 12/14/2021
6.0.0 7,177,482 11/8/2021
6.0.0-rc.2.21480.5 55,047 10/12/2021
6.0.0-rc.1.21452.10 57,079 9/14/2021
6.0.0-preview.7.21378.4 38,696 8/10/2021
6.0.0-preview.6.21352.1 19,832 7/14/2021
6.0.0-preview.5.21301.9 36,098 6/15/2021
6.0.0-preview.4.21253.1 18,984 5/24/2021
6.0.0-preview.3.21201.2 38,688 4/8/2021
6.0.0-preview.2.21154.2 14,657 3/11/2021
6.0.0-preview.1.21102.2 31,327 2/12/2021
5.0.17 2,323,302 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 439,949 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 700,619 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 899,440 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,390,669 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,629,608 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,104,282 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,884,094 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,199,586 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,030,304 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,467,788 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,681,427 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,643,938 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,521,175 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,420,604 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,460,656 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,258,710 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,426,139 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 69,934 10/13/2020
5.0.0-rc.1.20451.13 52,914 9/14/2020
5.0.0-preview.8.20407.4 33,688 8/25/2020
5.0.0-preview.7.20365.15 32,760 7/21/2020
5.0.0-preview.6.20312.4 32,189 6/25/2020
5.0.0-preview.5.20278.2 15,879 6/10/2020
5.0.0-preview.4.20220.10 26,366 5/18/2020
5.0.0-preview.3.20181.2 38,440 4/23/2020
5.0.0-preview.2.20159.4 26,180 4/2/2020
5.0.0-preview.2.20120.8 14,421 3/16/2020
3.1.32 847,373 12/13/2022
3.1.31 164,911 11/8/2022
3.1.30 207,750 10/11/2022
3.1.29 598,076 9/13/2022
3.1.28 139,946 8/9/2022
3.1.27 113,897 7/12/2022
3.1.26 157,922 6/14/2022
3.1.25 320,709 5/10/2022
3.1.24 157,771 4/11/2022
3.1.23 381,803 3/8/2022
3.1.22 880,247 12/14/2021
3.1.21 975,940 11/7/2021
3.1.20 334,824 10/11/2021
3.1.19 577,196 9/14/2021
3.1.18 871,833 8/10/2021
3.1.17 541,177 7/13/2021
3.1.16 583,355 6/8/2021
3.1.15 790,448 5/11/2021
3.1.14 962,699 4/6/2021
3.1.13 1,190,628 3/9/2021
3.1.12 1,041,386 2/9/2021
3.1.11 1,378,878 1/12/2021
3.1.10 2,317,577 11/9/2020
3.1.9 3,433,285 10/13/2020
3.1.8 5,099,375 9/8/2020
3.1.7 3,005,453 8/11/2020
3.1.6 3,451,230 7/14/2020
3.1.5 4,256,103 6/9/2020
3.1.4 4,174,721 5/12/2020
3.1.3 5,764,651 3/24/2020
3.1.2 4,127,101 2/19/2020
3.1.1 4,106,832 1/14/2020
3.1.0 4,461,537 12/3/2019
3.1.0-preview3.19554.8 37,687 11/13/2019
3.1.0-preview2.19525.5 15,411 11/1/2019
3.1.0-preview1.19506.2 781,425 10/15/2019
3.0.3 51,515 2/19/2020
3.0.2 32,239 1/14/2020
3.0.1 477,085 11/18/2019
3.0.0 4,537,938 9/23/2019
3.0.0-rc1.19456.14 22,732 9/16/2019
3.0.0-preview9.19423.6 38,834 9/4/2019
3.0.0-preview8.19405.11 42,977 8/13/2019
3.0.0-preview7.19362.6 30,311 7/23/2019
3.0.0-preview6.19304.10 39,483 6/12/2019
3.0.0-preview5.19227.1 47,648 5/6/2019
3.0.0-preview4.19216.3 9,110 4/18/2019
3.0.0-preview3.19153.1 29,635 3/6/2019
3.0.0-preview.19074.3 15,911 1/29/2019
3.0.0-preview.18572.1 14,438 12/3/2018
2.3.0 0 1/14/2025
2.2.6 10,631,102 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,735,648 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,769,440 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,007,216 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,586,131 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 10,894,886 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,320 10/17/2018
2.2.0-preview2-35157 67,194 9/12/2018
2.2.0-preview1-35029 18,096 8/22/2018
2.1.14 2,028,908 11/18/2019
2.1.11 1,825,276 5/14/2019
2.1.8 2,216,252 2/12/2019
2.1.4 6,776,572 10/1/2018
2.1.3 3,210,708 9/11/2018
2.1.2 2,482,073 8/21/2018
2.1.1 11,479,188 6/18/2018
2.1.0 4,617,874 5/29/2018
2.1.0-rc1-final 51,533 5/6/2018
2.1.0-preview2-final 67,792 4/10/2018
2.1.0-preview1-final 203,655 2/26/2018
2.0.3 4,081,518 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,135,957 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,726,449 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,087,185 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 63,712 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 36,903 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 67,191 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 177,356 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 20,197 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 63,300 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 716,260 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 282,573 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 327,809 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 47,917 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 14,656 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,475 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 14,882 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 449,313 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 29,783 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,206 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 383,798 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 63,721 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 36,634 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 11,075 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 16,519 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.