Microsoft.EntityFrameworkCore 6.0.31

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.

Requires NuGet 3.6 or higher.

dotnet add package Microsoft.EntityFrameworkCore --version 6.0.31
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 6.0.31
                    
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" Version="6.0.31" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="6.0.31" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.EntityFrameworkCore" />
                    
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 --version 6.0.31
                    
#r "nuget: Microsoft.EntityFrameworkCore, 6.0.31"
                    
#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.
#:package Microsoft.EntityFrameworkCore@6.0.31
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.EntityFrameworkCore&version=6.0.31
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore&version=6.0.31
                    
Install as a Cake Tool

Entity Framework Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. EF Core works with SQL Server, Azure SQL Database, SQLite, Azure Cosmos DB, MySQL, PostgreSQL, and other databases through a provider plugin API.

Commonly Used Types:
Microsoft.EntityFrameworkCore.DbContext
Microsoft.EntityFrameworkCore.DbSet

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9.8K)

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

Package Downloads
Microsoft.EntityFrameworkCore.Relational

Shared Entity Framework Core components for relational database providers.

Microsoft.EntityFrameworkCore.InMemory

In-memory database provider for Entity Framework Core (to be used for testing purposes).

Npgsql.EntityFrameworkCore.PostgreSQL

PostgreSQL/Npgsql provider for Entity Framework Core.

Microsoft.VisualStudio.Web.CodeGenerators.Mvc

Code Generators for ASP.NET Core MVC. Contains code generators for MVC Controllers and Views.

Microsoft.VisualStudio.Web.CodeGeneration.Design

Code Generation tool for ASP.NET Core. Contains the dotnet-aspnet-codegenerator command used for generating controllers and views.

GitHub repositories (666)

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

Repository Stars
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.
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
davidfowl/AspNetCoreDiagnosticScenarios
This repository has examples of broken patterns in ASP.NET Core applications
RayWangQvQ/BiliBiliToolPro
B 站(bilibili)自动任务工具,支持docker、青龙、k8s等多种部署方式。敏感肌也能用。
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
EduardoPires/EquinoxProject
Web Application ASP.NET 9 using Clean Architecture, DDD, CQRS, Event Sourcing and a lot of good practices
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
ldqk/Masuit.Tools
全龄段友好的C#万能工具库,码数吐司库,包含一些常用的操作类,大都是静态类,加密解密,反射操作,权重随机筛选算法,分布式短id,表达式树,linq扩展,文件压缩,多线程下载,硬件信息,字符串扩展方法,日期时间扩展操作,中国农历,大文件拷贝,图像裁剪,验证码,断点续传,集合扩展、Excel导出等常用封装。诸多功能集一身,代码量不到2MB!
graphql-dotnet/graphql-dotnet
GraphQL for .NET
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
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.
MapsterMapper/Mapster
A fast, fun and stimulating object to object Mapper
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
Version Downloads Last Updated
10.0.1 184,459 12/9/2025
10.0.0 1,920,169 11/11/2025
10.0.0-rc.2.25502.107 228,419 10/14/2025
10.0.0-rc.1.25451.107 148,860 9/9/2025
10.0.0-preview.7.25380.108 52,691 8/12/2025
10.0.0-preview.6.25358.103 17,971 7/15/2025
10.0.0-preview.5.25277.114 62,249 6/6/2025
10.0.0-preview.4.25258.110 30,031 5/12/2025
10.0.0-preview.3.25171.6 22,228 4/10/2025
10.0.0-preview.2.25163.8 83,913 3/18/2025
10.0.0-preview.1.25081.1 13,936 2/25/2025
9.0.11 1,351,861 11/11/2025
9.0.10 4,911,184 10/14/2025
9.0.9 7,490,296 9/9/2025
9.0.8 7,350,171 8/5/2025
9.0.7 6,087,107 7/8/2025
9.0.6 6,850,413 6/10/2025
9.0.5 8,597,966 5/13/2025
9.0.4 10,616,408 4/8/2025
9.0.3 9,359,129 3/11/2025
9.0.2 10,392,566 2/11/2025
9.0.1 27,033,113 1/14/2025
9.0.0 29,718,199 11/12/2024
9.0.0-rc.2.24474.1 248,997 10/8/2024
9.0.0-rc.1.24451.1 156,033 9/10/2024
9.0.0-preview.7.24405.3 114,272 8/13/2024
9.0.0-preview.6.24327.4 237,981 7/9/2024
9.0.0-preview.5.24306.3 73,015 6/11/2024
9.0.0-preview.4.24267.1 75,715 5/21/2024
9.0.0-preview.3.24172.4 192,439 4/11/2024
9.0.0-preview.2.24128.4 91,280 3/12/2024
9.0.0-preview.1.24081.2 148,402 2/13/2024
8.0.22 813,613 11/11/2025
8.0.21 1,285,871 10/14/2025
8.0.20 2,000,139 9/9/2025
8.0.19 3,311,778 8/5/2025
8.0.18 2,091,862 7/8/2025
8.0.17 3,691,318 6/10/2025
8.0.16 3,489,562 5/13/2025
8.0.15 4,818,598 4/8/2025
8.0.14 6,111,403 3/11/2025
8.0.13 8,646,916 2/11/2025
8.0.12 7,101,541 1/14/2025
8.0.11 31,977,345 11/12/2024
8.0.10 30,643,082 10/8/2024
8.0.8 35,428,664 8/13/2024
8.0.7 20,994,896 7/9/2024
8.0.6 23,319,048 5/28/2024
8.0.5 9,696,017 5/14/2024
8.0.4 38,268,095 4/9/2024
8.0.3 14,836,308 3/12/2024
8.0.2 31,506,835 2/13/2024
8.0.1 19,244,747 1/9/2024
8.0.0 66,456,492 11/14/2023
8.0.0-rc.2.23480.1 592,452 10/10/2023
8.0.0-rc.1.23419.6 164,440 9/12/2023
8.0.0-preview.7.23375.4 135,262 8/8/2023
8.0.0-preview.6.23329.4 246,974 7/11/2023
8.0.0-preview.5.23280.1 215,849 6/13/2023
8.0.0-preview.4.23259.3 150,662 5/16/2023
8.0.0-preview.3.23174.2 332,530 4/11/2023
8.0.0-preview.2.23128.3 204,378 3/14/2023
8.0.0-preview.1.23111.4 143,755 2/21/2023
7.0.20 5,605,026 5/28/2024
7.0.19 646,027 5/14/2024
7.0.18 3,023,519 4/9/2024
7.0.17 1,848,051 3/12/2024
7.0.16 2,370,043 2/13/2024
7.0.15 3,696,953 1/9/2024
7.0.14 6,834,893 11/14/2023
7.0.13 7,989,816 10/24/2023
7.0.12 4,808,397 10/10/2023
7.0.11 15,690,157 9/12/2023
7.0.10 10,755,884 8/8/2023
7.0.9 10,127,682 7/11/2023
7.0.8 6,071,569 6/22/2023
7.0.7 4,147,623 6/13/2023
7.0.5 28,599,321 4/11/2023
7.0.4 10,058,569 3/14/2023
7.0.3 14,989,470 2/14/2023
7.0.2 20,790,731 1/10/2023
7.0.1 11,147,065 12/13/2022
7.0.0 37,602,380 11/7/2022
7.0.0-rc.2.22472.11 236,128 10/11/2022
7.0.0-rc.1.22426.7 224,194 9/14/2022
7.0.0-preview.7.22376.2 106,015 8/9/2022
7.0.0-preview.6.22329.4 80,556 7/12/2022
7.0.0-preview.5.22302.2 67,197 6/14/2022
7.0.0-preview.4.22229.2 93,955 5/10/2022
7.0.0-preview.3.22175.1 80,065 4/13/2022
7.0.0-preview.2.22153.1 87,497 3/14/2022
7.0.0-preview.1.22076.6 60,295 2/17/2022
6.0.36 3,177,577 11/12/2024
6.0.35 997,341 10/8/2024
6.0.33 2,514,417 8/13/2024
6.0.32 999,565 7/9/2024
6.0.31 1,340,095 5/28/2024
6.0.30 755,663 5/14/2024
6.0.29 3,473,040 4/9/2024
6.0.28 1,964,156 3/12/2024
6.0.27 2,203,332 2/13/2024
6.0.26 3,039,118 1/9/2024
6.0.25 4,142,589 11/14/2023
6.0.24 2,080,539 10/24/2023
6.0.23 1,362,314 10/10/2023
6.0.22 3,719,314 9/12/2023
6.0.21 3,953,384 8/8/2023
6.0.20 3,179,171 7/11/2023
6.0.19 2,693,974 6/22/2023
6.0.18 1,396,480 6/13/2023
6.0.16 8,239,474 4/11/2023
6.0.15 4,534,787 3/14/2023
6.0.14 5,641,718 2/14/2023
6.0.13 7,451,415 1/10/2023
6.0.12 11,742,034 12/13/2022
6.0.11 10,589,377 11/7/2022
6.0.10 18,594,314 10/11/2022
6.0.9 16,279,139 9/13/2022
6.0.8 19,647,944 8/9/2022
6.0.7 53,222,345 7/12/2022
6.0.6 15,929,446 6/14/2022
6.0.5 24,133,667 5/10/2022
6.0.4 18,899,204 4/11/2022
6.0.3 27,558,783 3/8/2022
6.0.2 20,905,470 2/8/2022
6.0.1 35,453,280 12/14/2021
6.0.0 80,420,391 11/8/2021
6.0.0-rc.2.21480.5 338,937 10/12/2021
6.0.0-rc.1.21452.10 276,347 9/14/2021
6.0.0-preview.7.21378.4 103,726 8/10/2021
6.0.0-preview.6.21352.1 45,553 7/14/2021
6.0.0-preview.5.21301.9 196,097 6/15/2021
6.0.0-preview.4.21253.1 80,131 5/24/2021
6.0.0-preview.3.21201.2 104,157 4/8/2021
6.0.0-preview.2.21154.2 75,397 3/11/2021
6.0.0-preview.1.21102.2 99,284 2/12/2021
5.0.17 8,686,615 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 1,581,880 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 2,449,208 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 2,458,514 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 4,721,464 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 5,058,642 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 8,805,856 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 14,289,495 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 10,855,180 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 10,273,918 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 15,333,783 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 8,583,590 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 12,040,044 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 8,718,694 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 8,332,801 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 10,834,200 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 16,847,350 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 29,021,707 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 392,929 10/13/2020
5.0.0-rc.1.20451.13 324,259 9/14/2020
5.0.0-preview.8.20407.4 211,078 8/25/2020
5.0.0-preview.7.20365.15 119,877 7/21/2020
5.0.0-preview.6.20312.4 65,149 6/25/2020
5.0.0-preview.5.20278.2 51,778 6/10/2020
5.0.0-preview.4.20220.10 75,057 5/18/2020
5.0.0-preview.3.20181.2 95,741 4/23/2020
5.0.0-preview.2.20159.4 63,296 4/2/2020
5.0.0-preview.2.20120.8 46,606 3/16/2020
3.1.32 8,417,341 12/13/2022
3.1.31 1,872,293 11/8/2022
3.1.30 893,598 10/11/2022
3.1.29 1,567,063 9/13/2022
3.1.28 988,338 8/9/2022
3.1.27 862,112 7/12/2022
3.1.26 739,776 6/14/2022
3.1.25 1,190,320 5/10/2022
3.1.24 704,533 4/11/2022
3.1.23 1,143,584 3/8/2022
3.1.22 3,961,802 12/14/2021
3.1.21 2,775,474 11/7/2021
3.1.20 1,784,103 10/11/2021
3.1.19 2,609,775 9/14/2021
3.1.18 6,021,802 8/10/2021
3.1.17 2,012,423 7/13/2021
3.1.16 2,505,057 6/8/2021
3.1.15 3,120,611 5/11/2021
3.1.14 3,286,915 4/6/2021
3.1.13 4,968,631 3/9/2021
3.1.12 3,143,488 2/9/2021
3.1.11 5,693,643 1/12/2021
3.1.10 8,666,531 11/9/2020
3.1.9 12,552,289 10/13/2020
3.1.8 18,255,336 9/8/2020
3.1.7 10,640,096 8/11/2020
3.1.6 11,280,337 7/14/2020
3.1.5 13,346,030 6/9/2020
3.1.4 18,741,440 5/12/2020
3.1.3 29,333,959 3/24/2020
3.1.2 12,367,091 2/19/2020
3.1.1 21,137,736 1/14/2020
3.1.0 36,402,028 12/3/2019
3.1.0-preview3.19554.8 172,407 11/13/2019
3.1.0-preview2.19525.5 33,627 11/1/2019
3.1.0-preview1.19506.2 796,439 10/15/2019
3.0.3 207,563 2/19/2020
3.0.2 90,221 1/14/2020
3.0.1 1,463,325 11/18/2019
3.0.0 19,994,937 9/23/2019
3.0.0-rc1.19456.14 47,563 9/16/2019
3.0.0-preview9.19423.6 1,405,713 9/4/2019
3.0.0-preview8.19405.11 444,212 8/13/2019
3.0.0-preview7.19362.6 99,722 7/23/2019
3.0.0-preview6.19304.10 176,699 6/12/2019
3.0.0-preview5.19227.1 722,783 5/6/2019
3.0.0-preview4.19216.3 23,422 4/18/2019
3.0.0-preview3.19153.1 211,217 3/6/2019
3.0.0-preview.19074.3 33,236 1/29/2019
3.0.0-preview.18572.1 49,440 12/3/2018
2.3.0 73,589 1/14/2025
2.2.6 33,099,490 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 20,145,823 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 5,480,029 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 6,626,108 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 7,055,771 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 23,221,478 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 187,269 10/17/2018
2.2.0-preview2-35157 158,582 9/12/2018
2.2.0-preview1-35029 86,890 8/22/2018
2.1.14 4,201,654 11/18/2019
2.1.11 3,792,658 5/14/2019
2.1.8 3,981,299 2/12/2019
2.1.4 15,954,823 10/1/2018
2.1.3 5,031,069 9/11/2018
2.1.2 8,299,108 8/21/2018
2.1.1 18,116,632 6/18/2018
2.1.0 13,763,525 5/29/2018
2.1.0-rc1-final 232,560 5/6/2018
2.1.0-preview2-final 218,430 4/10/2018
2.1.0-preview1-final 329,592 2/26/2018
2.0.3 5,634,185 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 6,946,133 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 13,034,208 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 28,905,780 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 99,661 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 1,164,148 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 6,461,308 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 1,293,188 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 241,818 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 321,182 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 5,368,568 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 3,478,337 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 8,455,648 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 48,159 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 65,076 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 52,717 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 68,041 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 744,476 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 87,104 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 912,745 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 2,214,060 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 149,915 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.