Microsoft.EntityFrameworkCore.Tools 9.0.4

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.4
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore.Tools -Version 9.0.4
                    
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.4">
  <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.4" />
                    
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.4
                    
#r "nuget: Microsoft.EntityFrameworkCore.Tools, 9.0.4"
                    
#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.4
                    
Install Microsoft.EntityFrameworkCore.Tools as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore.Tools&version=9.0.4
                    
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 (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 (526)

Showing the top 20 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.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
dotnet/eShop
A reference .NET application implementing an eCommerce site
louthy/language-ext
C# pure functional programming framework - come and get declarative!
EduardoPires/EquinoxProject
Web Application ASP.NET 8 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
immense/Remotely
A remote control and remote scripting solution, built with .NET 8, Blazor, and SignalR.
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
simplcommerce/SimplCommerce
A simple, cross platform, modulith ecommerce system built on .NET
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
Version Downloads Last updated
10.0.0-preview.3.25171.6 640 4/10/2025
10.0.0-preview.2.25163.8 7,876 3/18/2025
10.0.0-preview.1.25081.1 8,310 2/25/2025
9.0.4 87,689 4/8/2025
9.0.3 900,370 3/11/2025
9.0.2 1,374,102 2/11/2025
9.0.1 1,554,853 1/14/2025
9.0.0 3,225,840 11/12/2024
9.0.0-rc.2.24474.1 77,140 10/8/2024
9.0.0-rc.1.24451.1 40,945 9/10/2024
9.0.0-preview.7.24405.3 21,476 8/13/2024
9.0.0-preview.6.24327.4 21,524 7/9/2024
9.0.0-preview.5.24306.3 14,091 6/11/2024
9.0.0-preview.4.24267.1 16,600 5/21/2024
9.0.0-preview.3.24172.4 107,072 4/11/2024
9.0.0-preview.2.24128.4 25,840 3/12/2024
9.0.0-preview.1.24081.2 43,780 2/13/2024
8.0.15 26,148 4/8/2025
8.0.14 368,100 3/11/2025
8.0.13 615,926 2/11/2025
8.0.12 877,757 1/14/2025
8.0.11 3,417,773 11/12/2024
8.0.10 6,343,550 10/8/2024
8.0.8 7,745,096 8/13/2024
8.0.7 4,968,169 7/9/2024
8.0.6 5,734,697 5/28/2024
8.0.5 2,202,588 5/14/2024
8.0.4 5,915,592 4/9/2024
8.0.3 3,999,923 3/12/2024
8.0.2 5,025,978 2/13/2024
8.0.1 4,214,480 1/9/2024
8.0.0 5,958,898 11/14/2023
8.0.0-rc.2.23480.1 72,897 10/10/2023
8.0.0-rc.1.23419.6 39,030 9/12/2023
8.0.0-preview.7.23375.4 30,873 8/8/2023
8.0.0-preview.6.23329.4 42,948 7/11/2023
8.0.0-preview.5.23280.1 50,718 6/13/2023
8.0.0-preview.4.23259.3 37,029 5/16/2023
8.0.0-preview.3.23174.2 67,286 4/11/2023
8.0.0-preview.2.23128.3 36,381 3/14/2023
8.0.0-preview.1.23111.4 78,091 2/21/2023
7.0.20 1,000,338 5/28/2024
7.0.19 175,319 5/14/2024
7.0.18 501,982 4/9/2024
7.0.17 418,963 3/12/2024
7.0.16 578,794 2/13/2024
7.0.15 880,393 1/9/2024
7.0.14 1,862,944 11/14/2023
7.0.13 2,143,537 10/24/2023
7.0.12 1,627,711 10/10/2023
7.0.11 3,500,280 9/12/2023
7.0.10 3,385,312 8/8/2023
7.0.9 2,710,847 7/11/2023
7.0.8 2,277,490 6/22/2023
7.0.7 1,077,228 6/13/2023
7.0.5 7,232,647 4/11/2023
7.0.4 3,252,984 3/14/2023
7.0.3 4,019,690 2/14/2023
7.0.2 4,955,472 1/10/2023
7.0.1 2,945,052 12/13/2022
7.0.0 3,652,110 11/7/2022
7.0.0-rc.2.22472.11 78,641 10/11/2022
7.0.0-rc.1.22426.7 35,764 9/14/2022
7.0.0-preview.7.22376.2 31,757 8/9/2022
7.0.0-preview.6.22329.4 24,189 7/12/2022
7.0.0-preview.5.22302.2 21,243 6/14/2022
7.0.0-preview.4.22229.2 27,021 5/10/2022
7.0.0-preview.3.22175.1 42,621 4/13/2022
7.0.0-preview.2.22153.1 17,319 3/14/2022
7.0.0-preview.1.22076.6 13,875 2/17/2022
6.0.36 236,002 11/12/2024
6.0.35 164,843 10/8/2024
6.0.33 315,605 8/13/2024
6.0.32 207,922 7/9/2024
6.0.31 283,959 5/28/2024
6.0.30 165,164 5/14/2024
6.0.29 522,443 4/9/2024
6.0.28 515,671 3/12/2024
6.0.27 520,394 2/13/2024
6.0.26 701,845 1/9/2024
6.0.25 1,079,754 11/14/2023
6.0.24 511,089 10/24/2023
6.0.23 471,680 10/10/2023
6.0.22 1,012,800 9/12/2023
6.0.21 1,041,579 8/8/2023
6.0.20 1,014,716 7/11/2023
6.0.19 639,749 6/22/2023
6.0.18 459,188 6/13/2023
6.0.16 2,429,106 4/11/2023
6.0.15 1,271,409 3/14/2023
6.0.14 1,676,367 2/14/2023
6.0.13 2,358,743 1/10/2023
6.0.12 2,074,995 12/13/2022
6.0.11 3,278,016 11/7/2022
6.0.10 5,806,935 10/11/2022
6.0.9 4,978,881 9/13/2022
6.0.8 6,496,791 8/9/2022
6.0.7 6,358,727 7/12/2022
6.0.6 3,954,827 6/14/2022
6.0.5 6,206,160 5/10/2022
6.0.4 4,627,132 4/11/2022
6.0.3 5,188,722 3/8/2022
6.0.2 4,297,154 2/8/2022
6.0.1 6,967,156 12/14/2021
6.0.0 7,513,981 11/8/2021
6.0.0-rc.2.21480.5 56,202 10/12/2021
6.0.0-rc.1.21452.10 58,243 9/14/2021
6.0.0-preview.7.21378.4 39,391 8/10/2021
6.0.0-preview.6.21352.1 20,246 7/14/2021
6.0.0-preview.5.21301.9 38,110 6/15/2021
6.0.0-preview.4.21253.1 20,046 5/24/2021
6.0.0-preview.3.21201.2 40,409 4/8/2021
6.0.0-preview.2.21154.2 14,846 3/11/2021
6.0.0-preview.1.21102.2 31,839 2/12/2021
5.0.17 2,439,896 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 450,405 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 716,915 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 909,356 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 1,429,781 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 1,675,253 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 3,155,965 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 3,963,713 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 3,254,264 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 3,075,064 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 3,521,054 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 2,719,969 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 3,709,944 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 2,557,890 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 2,450,021 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 2,485,837 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 2,289,127 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 3,487,684 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 71,065 10/13/2020
5.0.0-rc.1.20451.13 53,478 9/14/2020
5.0.0-preview.8.20407.4 34,048 8/25/2020
5.0.0-preview.7.20365.15 33,007 7/21/2020
5.0.0-preview.6.20312.4 32,605 6/25/2020
5.0.0-preview.5.20278.2 16,575 6/10/2020
5.0.0-preview.4.20220.10 26,811 5/18/2020
5.0.0-preview.3.20181.2 38,730 4/23/2020
5.0.0-preview.2.20159.4 26,541 4/2/2020
5.0.0-preview.2.20120.8 14,639 3/16/2020
3.1.32 977,396 12/13/2022
3.1.31 176,509 11/8/2022
3.1.30 225,498 10/11/2022
3.1.29 666,673 9/13/2022
3.1.28 145,829 8/9/2022
3.1.27 121,423 7/12/2022
3.1.26 165,888 6/14/2022
3.1.25 331,500 5/10/2022
3.1.24 161,459 4/11/2022
3.1.23 391,559 3/8/2022
3.1.22 917,785 12/14/2021
3.1.21 996,758 11/7/2021
3.1.20 341,915 10/11/2021
3.1.19 590,315 9/14/2021
3.1.18 892,217 8/10/2021
3.1.17 558,382 7/13/2021
3.1.16 593,493 6/8/2021
3.1.15 802,932 5/11/2021
3.1.14 983,430 4/6/2021
3.1.13 1,205,314 3/9/2021
3.1.12 1,053,168 2/9/2021
3.1.11 1,398,281 1/12/2021
3.1.10 2,345,251 11/9/2020
3.1.9 3,473,362 10/13/2020
3.1.8 5,151,537 9/8/2020
3.1.7 3,037,487 8/11/2020
3.1.6 3,502,650 7/14/2020
3.1.5 4,310,013 6/9/2020
3.1.4 4,262,236 5/12/2020
3.1.3 5,837,659 3/24/2020
3.1.2 4,164,886 2/19/2020
3.1.1 4,147,580 1/14/2020
3.1.0 4,525,944 12/3/2019
3.1.0-preview3.19554.8 38,171 11/13/2019
3.1.0-preview2.19525.5 15,756 11/1/2019
3.1.0-preview1.19506.2 796,550 10/15/2019
3.0.3 53,705 2/19/2020
3.0.2 32,988 1/14/2020
3.0.1 481,051 11/18/2019
3.0.0 4,600,157 9/23/2019
3.0.0-rc1.19456.14 22,957 9/16/2019
3.0.0-preview9.19423.6 39,310 9/4/2019
3.0.0-preview8.19405.11 43,305 8/13/2019
3.0.0-preview7.19362.6 30,674 7/23/2019
3.0.0-preview6.19304.10 39,744 6/12/2019
3.0.0-preview5.19227.1 48,466 5/6/2019
3.0.0-preview4.19216.3 9,282 4/18/2019
3.0.0-preview3.19153.1 29,966 3/6/2019
3.0.0-preview.19074.3 16,190 1/29/2019
3.0.0-preview.18572.1 14,737 12/3/2018
2.3.0 2,887 1/14/2025
2.2.6 10,798,251 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,784,957 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,780,121 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 2,022,611 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,606,313 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,123,686 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,658 10/17/2018
2.2.0-preview2-35157 70,332 9/12/2018
2.2.0-preview1-35029 18,311 8/22/2018
2.1.14 2,074,219 11/18/2019
2.1.11 1,837,018 5/14/2019
2.1.8 2,224,908 2/12/2019
2.1.4 6,835,780 10/1/2018
2.1.3 3,224,185 9/11/2018
2.1.2 2,497,095 8/21/2018
2.1.1 11,981,699 6/18/2018
2.1.0 4,651,166 5/29/2018
2.1.0-rc1-final 51,990 5/6/2018
2.1.0-preview2-final 68,481 4/10/2018
2.1.0-preview1-final 205,252 2/26/2018
2.0.3 4,140,685 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 4,181,874 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 6,814,129 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 7,154,527 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 64,300 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 37,186 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 70,317 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 178,588 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 20,538 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.2 63,709 9/20/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 726,587 5/9/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 285,368 3/6/2017 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview4-final 328,682 11/16/2016 1.1.0-preview4-final is deprecated because it is no longer maintained.
1.1.0-msbuild3-final 48,236 1/27/2017 1.1.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.3 15,094 11/14/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 7,709 9/20/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 15,206 5/9/2017 1.0.1 is deprecated because it is no longer maintained.
1.0.0 501,776 3/6/2017 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview4-final 30,007 12/12/2016 1.0.0-preview4-final is deprecated because it is no longer maintained.
1.0.0-preview3-final 49,434 10/24/2016 1.0.0-preview3-final is deprecated because it is no longer maintained.
1.0.0-preview2-final 384,123 6/27/2016 1.0.0-preview2-final is deprecated because it is no longer maintained.
1.0.0-preview1-final 63,952 5/16/2016 1.0.0-preview1-final is deprecated because it is no longer maintained.
1.0.0-msbuild3-final 36,949 1/27/2017 1.0.0-msbuild3-final is deprecated because it is no longer maintained.
1.0.0-msbuild2-final 11,906 12/12/2016 1.0.0-msbuild2-final is deprecated because it is no longer maintained.
1.0.0-msbuild1-final 16,734 11/16/2016 1.0.0-msbuild1-final is deprecated because it is no longer maintained.