Microsoft.EntityFrameworkCore.Tools 9.0.3

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 9.0.3
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 9.0.3
                    
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.3">
  <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.
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.EntityFrameworkCore.Tools --version 9.0.3
                    
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 9.0.3"
                    
#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.
#addin nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=9.0.3
                    
Install Microsoft.EntityFrameworkCore.Tools as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=9.0.3
                    
Install Microsoft.EntityFrameworkCore.Tools as a Cake Tool

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

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

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 proven Clean Architecture Template for ASP.NET Core 9
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
10.0.0-preview.2.25163.8 3,790 3/18/2025
10.0.0-preview.1.25081.1 7,833 2/25/2025
9.0.3 509,523 3/11/2025
9.0.2 1,178,613 2/11/2025
9.0.1 1,411,511 1/14/2025
9.0.0 3,020,424 11/12/2024
9.0.0-rc.2.24474.1 75,062 10/8/2024
9.0.0-rc.1.24451.1 39,919 9/10/2024
9.0.0-preview.7.24405.3 21,301 8/13/2024
9.0.0-preview.6.24327.4 21,190 7/9/2024
9.0.0-preview.5.24306.3 13,949 6/11/2024
9.0.0-preview.4.24267.1 16,286 5/21/2024
9.0.0-preview.3.24172.4 106,475 4/11/2024
9.0.0-preview.2.24128.4 25,188 3/12/2024
9.0.0-preview.1.24081.2 43,268 2/13/2024
8.0.14 203,723 3/11/2025
8.0.13 512,133 2/11/2025
8.0.12 777,291 1/14/2025
8.0.11 3,142,372 11/12/2024
8.0.10 6,028,639 10/8/2024
8.0.8 7,490,611 8/13/2024
8.0.7 4,818,159 7/9/2024
8.0.6 5,595,007 5/28/2024
8.0.5 2,151,294 5/14/2024
8.0.4 5,777,894 4/9/2024
8.0.3 3,918,558 3/12/2024
8.0.2 4,913,076 2/13/2024
8.0.1 4,147,601 1/9/2024
8.0.0 5,851,642 11/14/2023
8.0.0-rc.2.23480.1 72,564 10/10/2023
8.0.0-rc.1.23419.6 38,921 9/12/2023
8.0.0-preview.7.23375.4 30,802 8/8/2023
8.0.0-preview.6.23329.4 42,679 7/11/2023
8.0.0-preview.5.23280.1 49,424 6/13/2023
8.0.0-preview.4.23259.3 36,680 5/16/2023
8.0.0-preview.3.23174.2 66,418 4/11/2023
8.0.0-preview.2.23128.3 36,273 3/14/2023
8.0.0-preview.1.23111.4 77,914 2/21/2023
7.0.20 958,516 5/28/2024
7.0.19 171,120 5/14/2024
7.0.18 492,957 4/9/2024
7.0.17 412,948 3/12/2024
7.0.16 571,674 2/13/2024
7.0.15 868,725 1/9/2024
7.0.14 1,845,686 11/14/2023
7.0.13 2,129,829 10/24/2023
7.0.12 1,616,655 10/10/2023
7.0.11 3,449,766 9/12/2023
7.0.10 3,362,989 8/8/2023
7.0.9 2,691,243 7/11/2023
7.0.8 2,258,444 6/22/2023
7.0.7 1,069,986 6/13/2023
7.0.5 7,188,954 4/11/2023
7.0.4 3,234,155 3/14/2023
7.0.3 3,998,208 2/14/2023
7.0.2 4,915,141 1/10/2023
7.0.1 2,925,685 12/13/2022
7.0.0 3,634,097 11/7/2022
7.0.0-rc.2.22472.11 78,287 10/11/2022
7.0.0-rc.1.22426.7 35,634 9/14/2022
7.0.0-preview.7.22376.2 31,685 8/9/2022
7.0.0-preview.6.22329.4 24,103 7/12/2022
7.0.0-preview.5.22302.2 21,212 6/14/2022
7.0.0-preview.4.22229.2 26,998 5/10/2022
7.0.0-preview.3.22175.1 42,612 4/13/2022
7.0.0-preview.2.22153.1 17,302 3/14/2022
7.0.0-preview.1.22076.6 13,855 2/17/2022
6.0.36 214,353 11/12/2024
6.0.35 158,149 10/8/2024
6.0.33 307,739 8/13/2024
6.0.32 203,989 7/9/2024
6.0.31 278,526 5/28/2024
6.0.30 161,725 5/14/2024
6.0.29 513,941 4/9/2024
6.0.28 507,315 3/12/2024
6.0.27 513,133 2/13/2024
6.0.26 695,234 1/9/2024
6.0.25 1,067,144 11/14/2023
6.0.24 507,237 10/24/2023
6.0.23 467,982 10/10/2023
6.0.22 1,003,197 9/12/2023
6.0.21 1,033,104 8/8/2023
6.0.20 1,005,792 7/11/2023
6.0.19 634,779 6/22/2023
6.0.18 456,245 6/13/2023
6.0.16 2,411,428 4/11/2023
6.0.15 1,264,280 3/14/2023
6.0.14 1,667,177 2/14/2023
6.0.13 2,347,944 1/10/2023
6.0.12 2,061,659 12/13/2022
6.0.11 3,264,890 11/7/2022
6.0.10 5,782,268 10/11/2022
6.0.9 4,959,026 9/13/2022
6.0.8 6,470,206 8/9/2022
6.0.7 6,329,371 7/12/2022
6.0.6 3,935,710 6/14/2022
6.0.5 6,185,320 5/10/2022
6.0.4 4,610,832 4/11/2022
6.0.3 5,171,325 3/8/2022
6.0.2 4,280,923 2/8/2022
6.0.1 6,942,306 12/14/2021
6.0.0 7,473,113 11/8/2021
6.0.0-rc.2.21480.5 56,044 10/12/2021
6.0.0-rc.1.21452.10 58,095 9/14/2021
6.0.0-preview.7.21378.4 39,303 8/10/2021
6.0.0-preview.6.21352.1 20,203 7/14/2021
6.0.0-preview.5.21301.9 37,581 6/15/2021
6.0.0-preview.4.21253.1 20,037 5/24/2021
6.0.0-preview.3.21201.2 40,350 4/8/2021
6.0.0-preview.2.21154.2 14,840 3/11/2021
6.0.0-preview.1.21102.2 31,793 2/12/2021
5.0.17 2,424,778 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 448,963 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 714,748 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 908,107 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,424,000 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,668,217 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,149,331 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,953,148 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,247,431 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,069,707 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,513,624 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,715,224 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,703,422 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,553,510 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,446,629 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,482,771 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,285,534 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,480,939 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 70,926 10/13/2020
5.0.0-rc.1.20451.13 53,424 9/14/2020
5.0.0-preview.8.20407.4 34,004 8/25/2020
5.0.0-preview.7.20365.15 32,987 7/21/2020
5.0.0-preview.6.20312.4 32,573 6/25/2020
5.0.0-preview.5.20278.2 16,505 6/10/2020
5.0.0-preview.4.20220.10 26,726 5/18/2020
5.0.0-preview.3.20181.2 38,706 4/23/2020
5.0.0-preview.2.20159.4 26,498 4/2/2020
5.0.0-preview.2.20120.8 14,619 3/16/2020
3.1.32 959,452 12/13/2022
3.1.31 174,883 11/8/2022
3.1.30 223,147 10/11/2022
3.1.29 657,538 9/13/2022
3.1.28 144,911 8/9/2022
3.1.27 120,416 7/12/2022
3.1.26 164,782 6/14/2022
3.1.25 330,152 5/10/2022
3.1.24 161,008 4/11/2022
3.1.23 390,242 3/8/2022
3.1.22 912,542 12/14/2021
3.1.21 994,175 11/7/2021
3.1.20 340,942 10/11/2021
3.1.19 588,750 9/14/2021
3.1.18 889,210 8/10/2021
3.1.17 555,953 7/13/2021
3.1.16 592,010 6/8/2021
3.1.15 801,376 5/11/2021
3.1.14 980,473 4/6/2021
3.1.13 1,203,524 3/9/2021
3.1.12 1,051,796 2/9/2021
3.1.11 1,395,493 1/12/2021
3.1.10 2,342,227 11/9/2020
3.1.9 3,467,917 10/13/2020
3.1.8 5,144,767 9/8/2020
3.1.7 3,033,359 8/11/2020
3.1.6 3,495,320 7/14/2020
3.1.5 4,303,639 6/9/2020
3.1.4 4,250,540 5/12/2020
3.1.3 5,827,776 3/24/2020
3.1.2 4,159,471 2/19/2020
3.1.1 4,142,960 1/14/2020
3.1.0 4,517,922 12/3/2019
3.1.0-preview3.19554.8 38,109 11/13/2019
3.1.0-preview2.19525.5 15,730 11/1/2019
3.1.0-preview1.19506.2 794,198 10/15/2019
3.0.3 53,427 2/19/2020
3.0.2 32,862 1/14/2020
3.0.1 480,604 11/18/2019
3.0.0 4,592,290 9/23/2019
3.0.0-rc1.19456.14 22,937 9/16/2019
3.0.0-preview9.19423.6 39,271 9/4/2019
3.0.0-preview8.19405.11 43,266 8/13/2019
3.0.0-preview7.19362.6 30,630 7/23/2019
3.0.0-preview6.19304.10 39,718 6/12/2019
3.0.0-preview5.19227.1 48,345 5/6/2019
3.0.0-preview4.19216.3 9,273 4/18/2019
3.0.0-preview3.19153.1 29,950 3/6/2019
3.0.0-preview.19074.3 16,172 1/29/2019
3.0.0-preview.18572.1 14,682 12/3/2018
2.3.0 2,370 1/14/2025
2.2.6 10,777,855 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,779,042 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,778,671 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,020,364 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,603,497 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,094,105 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,622 10/17/2018
2.2.0-preview2-35157 70,013 9/12/2018
2.2.0-preview1-35029 18,301 8/22/2018
2.1.14 2,068,098 11/18/2019
2.1.11 1,835,697 5/14/2019
2.1.8 2,223,334 2/12/2019
2.1.4 6,831,106 10/1/2018
2.1.3 3,222,387 9/11/2018
2.1.2 2,494,204 8/21/2018
2.1.1 11,915,019 6/18/2018
2.1.0 4,646,721 5/29/2018
2.1.0-rc1-final 51,968 5/6/2018
2.1.0-preview2-final 68,438 4/10/2018
2.1.0-preview1-final 205,020 2/26/2018
2.0.3 4,132,645 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,175,758 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,802,247 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,145,513 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 64,242 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 37,176 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 69,940 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 178,483 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 20,517 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 63,693 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 725,001 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 285,012 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 328,607 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 48,211 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 15,063 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,699 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 15,180 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 493,565 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 29,997 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,423 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 384,095 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 63,942 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 36,904 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 11,852 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 16,725 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.