Microsoft.EntityFrameworkCore.Tools 9.0.0

Prefix Reserved
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 9.0.0                
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 9.0.0                
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.0">
  <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.0                
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 9.0.0"                
#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.0

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

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

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

Route bug fix

TrueSight

Package Description

GitHub repositories (493)

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

Repository Stars
jellyfin/jellyfin
The Free Software Media System
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.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
Version Downloads Last updated
9.0.0 194,121 11/12/2024
9.0.0-rc.2.24474.1 40,992 10/8/2024
9.0.0-rc.1.24451.1 28,989 9/10/2024
9.0.0-preview.7.24405.3 18,047 8/13/2024
9.0.0-preview.6.24327.4 17,439 7/9/2024
9.0.0-preview.5.24306.3 12,721 6/11/2024
9.0.0-preview.4.24267.1 13,794 5/21/2024
9.0.0-preview.3.24172.4 101,291 4/11/2024
9.0.0-preview.2.24128.4 21,999 3/12/2024
9.0.0-preview.1.24081.2 37,643 2/13/2024
8.0.11 185,760 11/12/2024
8.0.10 2,314,013 10/8/2024
8.0.8 4,547,916 8/13/2024
8.0.7 3,287,707 7/9/2024
8.0.6 4,119,817 5/28/2024
8.0.5 1,631,002 5/14/2024
8.0.4 4,358,183 4/9/2024
8.0.3 3,113,235 3/12/2024
8.0.2 3,728,553 2/13/2024
8.0.1 3,498,941 1/9/2024
8.0.0 4,718,635 11/14/2023
8.0.0-rc.2.23480.1 69,097 10/10/2023
8.0.0-rc.1.23419.6 37,553 9/12/2023
8.0.0-preview.7.23375.4 29,877 8/8/2023
8.0.0-preview.6.23329.4 39,332 7/11/2023
8.0.0-preview.5.23280.1 34,979 6/13/2023
8.0.0-preview.4.23259.3 33,051 5/16/2023
8.0.0-preview.3.23174.2 58,606 4/11/2023
8.0.0-preview.2.23128.3 34,255 3/14/2023
8.0.0-preview.1.23111.4 76,530 2/21/2023
7.0.20 570,861 5/28/2024
7.0.19 130,760 5/14/2024
7.0.18 385,156 4/9/2024
7.0.17 354,461 3/12/2024
7.0.16 499,036 2/13/2024
7.0.15 769,781 1/9/2024
7.0.14 1,650,037 11/14/2023
7.0.13 1,969,934 10/24/2023
7.0.12 1,480,434 10/10/2023
7.0.11 3,071,868 9/12/2023
7.0.10 3,112,008 8/8/2023
7.0.9 2,461,493 7/11/2023
7.0.8 2,108,137 6/22/2023
7.0.7 1,005,574 6/13/2023
7.0.5 6,729,475 4/11/2023
7.0.4 3,041,529 3/14/2023
7.0.3 3,755,927 2/14/2023
7.0.2 4,484,489 1/10/2023
7.0.1 2,750,893 12/13/2022
7.0.0 3,415,604 11/7/2022
7.0.0-rc.2.22472.11 74,208 10/11/2022
7.0.0-rc.1.22426.7 34,060 9/14/2022
7.0.0-preview.7.22376.2 30,645 8/9/2022
7.0.0-preview.6.22329.4 22,626 7/12/2022
7.0.0-preview.5.22302.2 19,999 6/14/2022
7.0.0-preview.4.22229.2 25,829 5/10/2022
7.0.0-preview.3.22175.1 42,125 4/13/2022
7.0.0-preview.2.22153.1 16,394 3/14/2022
7.0.0-preview.1.22076.6 13,477 2/17/2022
6.0.36 13,798 11/12/2024
6.0.35 72,448 10/8/2024
6.0.33 180,458 8/13/2024
6.0.32 151,254 7/9/2024
6.0.31 216,587 5/28/2024
6.0.30 121,956 5/14/2024
6.0.29 419,033 4/9/2024
6.0.28 412,462 3/12/2024
6.0.27 429,318 2/13/2024
6.0.26 612,085 1/9/2024
6.0.25 938,634 11/14/2023
6.0.24 457,094 10/24/2023
6.0.23 429,730 10/10/2023
6.0.22 895,273 9/12/2023
6.0.21 936,042 8/8/2023
6.0.20 897,051 7/11/2023
6.0.19 587,740 6/22/2023
6.0.18 420,662 6/13/2023
6.0.16 2,163,962 4/11/2023
6.0.15 1,191,524 3/14/2023
6.0.14 1,559,507 2/14/2023
6.0.13 2,225,916 1/10/2023
6.0.12 1,900,869 12/13/2022
6.0.11 3,106,696 11/7/2022
6.0.10 5,481,250 10/11/2022
6.0.9 4,705,780 9/13/2022
6.0.8 6,152,562 8/9/2022
6.0.7 5,982,690 7/12/2022
6.0.6 3,759,223 6/14/2022
6.0.5 5,942,388 5/10/2022
6.0.4 4,417,744 4/11/2022
6.0.3 4,992,641 3/8/2022
6.0.2 4,117,133 2/8/2022
6.0.1 6,672,904 12/14/2021
6.0.0 7,020,320 11/8/2021
6.0.0-rc.2.21480.5 54,524 10/12/2021
6.0.0-rc.1.21452.10 56,335 9/14/2021
6.0.0-preview.7.21378.4 37,563 8/10/2021
6.0.0-preview.6.21352.1 19,612 7/14/2021
6.0.0-preview.5.21301.9 35,551 6/15/2021
6.0.0-preview.4.21253.1 18,907 5/24/2021
6.0.0-preview.3.21201.2 38,377 4/8/2021
6.0.0-preview.2.21154.2 14,581 3/11/2021
6.0.0-preview.1.21102.2 31,025 2/12/2021
5.0.17 2,261,526 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 434,764 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 692,930 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 895,157 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,369,242 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,609,407 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,078,450 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,840,015 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,171,856 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,005,457 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,442,405 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,657,818 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,596,605 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,500,345 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,407,184 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,448,235 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,243,620 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,395,537 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 69,326 10/13/2020
5.0.0-rc.1.20451.13 52,483 9/14/2020
5.0.0-preview.8.20407.4 33,463 8/25/2020
5.0.0-preview.7.20365.15 32,606 7/21/2020
5.0.0-preview.6.20312.4 31,939 6/25/2020
5.0.0-preview.5.20278.2 15,688 6/10/2020
5.0.0-preview.4.20220.10 26,145 5/18/2020
5.0.0-preview.3.20181.2 38,226 4/23/2020
5.0.0-preview.2.20159.4 26,011 4/2/2020
5.0.0-preview.2.20120.8 14,325 3/16/2020
3.1.32 778,769 12/13/2022
3.1.31 158,384 11/8/2022
3.1.30 197,187 10/11/2022
3.1.29 555,148 9/13/2022
3.1.28 137,655 8/9/2022
3.1.27 111,798 7/12/2022
3.1.26 154,707 6/14/2022
3.1.25 315,237 5/10/2022
3.1.24 155,797 4/11/2022
3.1.23 376,849 3/8/2022
3.1.22 864,055 12/14/2021
3.1.21 954,660 11/7/2021
3.1.20 331,721 10/11/2021
3.1.19 566,985 9/14/2021
3.1.18 863,154 8/10/2021
3.1.17 533,186 7/13/2021
3.1.16 578,716 6/8/2021
3.1.15 783,565 5/11/2021
3.1.14 953,874 4/6/2021
3.1.13 1,184,353 3/9/2021
3.1.12 1,035,963 2/9/2021
3.1.11 1,370,505 1/12/2021
3.1.10 2,300,151 11/9/2020
3.1.9 3,414,815 10/13/2020
3.1.8 5,072,231 9/8/2020
3.1.7 2,990,518 8/11/2020
3.1.6 3,432,739 7/14/2020
3.1.5 4,227,611 6/9/2020
3.1.4 4,124,230 5/12/2020
3.1.3 5,730,087 3/24/2020
3.1.2 4,109,439 2/19/2020
3.1.1 4,086,766 1/14/2020
3.1.0 4,433,114 12/3/2019
3.1.0-preview3.19554.8 37,494 11/13/2019
3.1.0-preview2.19525.5 15,243 11/1/2019
3.1.0-preview1.19506.2 773,075 10/15/2019
3.0.3 49,800 2/19/2020
3.0.2 31,929 1/14/2020
3.0.1 475,044 11/18/2019
3.0.0 4,510,885 9/23/2019
3.0.0-rc1.19456.14 22,626 9/16/2019
3.0.0-preview9.19423.6 38,362 9/4/2019
3.0.0-preview8.19405.11 42,807 8/13/2019
3.0.0-preview7.19362.6 30,139 7/23/2019
3.0.0-preview6.19304.10 39,354 6/12/2019
3.0.0-preview5.19227.1 47,531 5/6/2019
3.0.0-preview4.19216.3 9,037 4/18/2019
3.0.0-preview3.19153.1 29,303 3/6/2019
3.0.0-preview.19074.3 15,795 1/29/2019
3.0.0-preview.18572.1 14,255 12/3/2018
2.2.6 10,549,351 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,711,504 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,763,949 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,001,401 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,577,009 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 10,790,200 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,142 10/17/2018
2.2.0-preview2-35157 66,628 9/12/2018
2.2.0-preview1-35029 18,026 8/22/2018
2.1.14 2,006,426 11/18/2019
2.1.11 1,820,350 5/14/2019
2.1.8 2,213,256 2/12/2019
2.1.4 6,740,271 10/1/2018
2.1.3 3,204,400 9/11/2018
2.1.2 2,475,781 8/21/2018
2.1.1 11,187,988 6/18/2018
2.1.0 4,597,318 5/29/2018
2.1.0-rc1-final 51,392 5/6/2018
2.1.0-preview2-final 67,518 4/10/2018
2.1.0-preview1-final 202,844 2/26/2018
2.0.3 4,055,884 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,114,969 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,686,499 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,052,714 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 63,478 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 36,745 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 66,092 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 176,843 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 20,099 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 63,098 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 710,475 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 281,299 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 327,504 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 47,794 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 14,486 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,399 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 14,756 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 428,502 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 29,709 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,141 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 383,684 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 63,651 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 36,540 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 10,827 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 16,436 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.