Microsoft.EntityFrameworkCore 6.0.22

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.22
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 6.0.22
                    
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.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="6.0.22" />
                    
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.22
                    
#r "nuget: Microsoft.EntityFrameworkCore, 6.0.22"
                    
#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.22
                    
#: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.22
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore&version=6.0.22
                    
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 (10.1K)

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.CodeGeneration.Design

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

Microsoft.VisualStudio.Web.CodeGenerators.Mvc

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

GitHub repositories (680)

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.
DearVa/Everywhere
Context-aware AI assistant for your desktop. Ready to respond intelligently, seamlessly integrating multiple LLMs and MCP tools.
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组件,配套代码生成模板,权限等组成。
Version Downloads Last Updated
11.0.0-preview.1.26104.118 668 2/10/2026
10.0.3 120,725 2/10/2026
10.0.2 2,899,248 1/13/2026
10.0.1 3,631,323 12/9/2025
10.0.0 6,701,883 11/11/2025
10.0.0-rc.2.25502.107 466,217 10/14/2025
10.0.0-rc.1.25451.107 187,129 9/9/2025
10.0.0-preview.7.25380.108 57,698 8/12/2025
10.0.0-preview.6.25358.103 20,021 7/15/2025
10.0.0-preview.5.25277.114 69,426 6/6/2025
10.0.0-preview.4.25258.110 32,628 5/12/2025
10.0.0-preview.3.25171.6 23,139 4/10/2025
10.0.0-preview.2.25163.8 102,733 3/18/2025
10.0.0-preview.1.25081.1 18,743 2/25/2025
9.0.13 25,191 2/10/2026
9.0.12 748,940 1/13/2026
9.0.11 3,870,173 11/11/2025
9.0.10 7,131,346 10/14/2025
9.0.9 9,798,869 9/9/2025
9.0.8 8,972,500 8/5/2025
9.0.7 7,215,553 7/8/2025
9.0.6 7,986,212 6/10/2025
9.0.5 9,626,452 5/13/2025
9.0.4 11,976,373 4/8/2025
9.0.3 10,243,894 3/11/2025
9.0.2 11,548,098 2/11/2025
9.0.1 32,227,552 1/14/2025
9.0.0 34,653,813 11/12/2024
9.0.0-rc.2.24474.1 258,970 10/8/2024
9.0.0-rc.1.24451.1 160,960 9/10/2024
9.0.0-preview.7.24405.3 120,345 8/13/2024
9.0.0-preview.6.24327.4 255,455 7/9/2024
9.0.0-preview.5.24306.3 77,295 6/11/2024
9.0.0-preview.4.24267.1 77,941 5/21/2024
9.0.0-preview.3.24172.4 195,038 4/11/2024
9.0.0-preview.2.24128.4 94,242 3/12/2024
9.0.0-preview.1.24081.2 153,448 2/13/2024
8.0.24 27,579 2/10/2026
8.0.23 604,296 1/13/2026
8.0.22 2,894,745 11/11/2025
8.0.21 2,001,058 10/14/2025
8.0.20 2,767,676 9/9/2025
8.0.19 4,060,639 8/5/2025
8.0.18 2,672,724 7/8/2025
8.0.17 4,307,589 6/10/2025
8.0.16 4,064,105 5/13/2025
8.0.15 5,531,075 4/8/2025
8.0.14 7,038,436 3/11/2025
8.0.13 10,042,271 2/11/2025
8.0.12 8,004,181 1/14/2025
8.0.11 37,291,598 11/12/2024
8.0.10 33,368,195 10/8/2024
8.0.8 38,261,373 8/13/2024
8.0.7 22,370,925 7/9/2024
8.0.6 24,670,339 5/28/2024
8.0.5 10,242,857 5/14/2024
8.0.4 40,794,911 4/9/2024
8.0.3 15,539,461 3/12/2024
8.0.2 33,804,850 2/13/2024
8.0.1 20,459,821 1/9/2024
8.0.0 73,052,850 11/14/2023
8.0.0-rc.2.23480.1 604,399 10/10/2023
8.0.0-rc.1.23419.6 166,809 9/12/2023
8.0.0-preview.7.23375.4 140,535 8/8/2023
8.0.0-preview.6.23329.4 257,675 7/11/2023
8.0.0-preview.5.23280.1 227,971 6/13/2023
8.0.0-preview.4.23259.3 154,635 5/16/2023
8.0.0-preview.3.23174.2 375,875 4/11/2023
8.0.0-preview.2.23128.3 206,155 3/14/2023
8.0.0-preview.1.23111.4 144,676 2/21/2023
7.0.20 6,158,883 5/28/2024
7.0.19 682,094 5/14/2024
7.0.18 3,209,402 4/9/2024
7.0.17 1,902,743 3/12/2024
7.0.16 2,442,490 2/13/2024
7.0.15 3,794,489 1/9/2024
7.0.14 6,986,137 11/14/2023
7.0.13 8,263,417 10/24/2023
7.0.12 4,887,198 10/10/2023
7.0.11 16,123,692 9/12/2023
7.0.10 10,992,104 8/8/2023
7.0.9 10,365,943 7/11/2023
7.0.8 6,179,479 6/22/2023
7.0.7 4,215,467 6/13/2023
7.0.5 29,209,880 4/11/2023
7.0.4 10,201,059 3/14/2023
7.0.3 15,255,954 2/14/2023
7.0.2 21,230,888 1/10/2023
7.0.1 11,437,275 12/13/2022
7.0.0 39,430,715 11/7/2022
7.0.0-rc.2.22472.11 240,416 10/11/2022
7.0.0-rc.1.22426.7 225,457 9/14/2022
7.0.0-preview.7.22376.2 107,184 8/9/2022
7.0.0-preview.6.22329.4 81,334 7/12/2022
7.0.0-preview.5.22302.2 67,790 6/14/2022
7.0.0-preview.4.22229.2 95,971 5/10/2022
7.0.0-preview.3.22175.1 80,317 4/13/2022
7.0.0-preview.2.22153.1 87,723 3/14/2022
7.0.0-preview.1.22076.6 60,669 2/17/2022
6.0.36 3,670,219 11/12/2024
6.0.35 1,076,282 10/8/2024
6.0.33 2,701,834 8/13/2024
6.0.32 1,058,221 7/9/2024
6.0.31 1,399,504 5/28/2024
6.0.30 788,394 5/14/2024
6.0.29 3,664,560 4/9/2024
6.0.28 2,057,095 3/12/2024
6.0.27 2,279,592 2/13/2024
6.0.26 3,143,792 1/9/2024
6.0.25 4,264,949 11/14/2023
6.0.24 2,122,722 10/24/2023
6.0.23 1,397,976 10/10/2023
6.0.22 3,814,396 9/12/2023
6.0.21 4,038,460 8/8/2023
6.0.20 3,252,011 7/11/2023
6.0.19 2,776,265 6/22/2023
6.0.18 1,429,958 6/13/2023
6.0.16 8,368,746 4/11/2023
6.0.15 4,607,290 3/14/2023
6.0.14 5,723,470 2/14/2023
6.0.13 7,560,096 1/10/2023
6.0.12 11,941,416 12/13/2022
6.0.11 10,740,099 11/7/2022
6.0.10 18,796,167 10/11/2022
6.0.9 16,486,238 9/13/2022
6.0.8 19,902,819 8/9/2022
6.0.7 53,971,156 7/12/2022
6.0.6 16,170,717 6/14/2022
6.0.5 24,477,508 5/10/2022
6.0.4 19,123,221 4/11/2022
6.0.3 28,263,720 3/8/2022
6.0.2 21,158,936 2/8/2022
6.0.1 36,085,063 12/14/2021
6.0.0 83,004,771 11/8/2021
6.0.0-rc.2.21480.5 340,482 10/12/2021
6.0.0-rc.1.21452.10 277,730 9/14/2021
6.0.0-preview.7.21378.4 104,395 8/10/2021
6.0.0-preview.6.21352.1 45,848 7/14/2021
6.0.0-preview.5.21301.9 198,343 6/15/2021
6.0.0-preview.4.21253.1 80,332 5/24/2021
6.0.0-preview.3.21201.2 104,538 4/8/2021
6.0.0-preview.2.21154.2 75,500 3/11/2021
6.0.0-preview.1.21102.2 100,050 2/12/2021
5.0.17 8,875,000 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 1,602,573 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 2,477,329 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 2,483,883 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 4,782,671 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 5,100,414 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 8,882,900 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 14,460,856 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 10,951,329 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 10,399,666 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 15,496,214 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 8,650,590 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 12,144,354 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 8,776,980 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 8,375,497 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 10,882,903 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 17,002,112 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 29,428,880 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 394,312 10/13/2020
5.0.0-rc.1.20451.13 324,829 9/14/2020
5.0.0-preview.8.20407.4 212,012 8/25/2020
5.0.0-preview.7.20365.15 120,228 7/21/2020
5.0.0-preview.6.20312.4 65,305 6/25/2020
5.0.0-preview.5.20278.2 51,928 6/10/2020
5.0.0-preview.4.20220.10 75,288 5/18/2020
5.0.0-preview.3.20181.2 96,331 4/23/2020
5.0.0-preview.2.20159.4 63,573 4/2/2020
5.0.0-preview.2.20120.8 46,725 3/16/2020
3.1.32 9,063,174 12/13/2022
3.1.31 2,065,600 11/8/2022
3.1.30 944,391 10/11/2022
3.1.29 1,653,550 9/13/2022
3.1.28 1,022,926 8/9/2022
3.1.27 901,685 7/12/2022
3.1.26 757,840 6/14/2022
3.1.25 1,218,055 5/10/2022
3.1.24 720,468 4/11/2022
3.1.23 1,163,700 3/8/2022
3.1.22 4,090,654 12/14/2021
3.1.21 2,808,986 11/7/2021
3.1.20 1,823,551 10/11/2021
3.1.19 2,635,788 9/14/2021
3.1.18 6,190,317 8/10/2021
3.1.17 2,045,501 7/13/2021
3.1.16 2,530,232 6/8/2021
3.1.15 3,178,363 5/11/2021
3.1.14 3,323,043 4/6/2021
3.1.13 5,037,150 3/9/2021
3.1.12 3,176,304 2/9/2021
3.1.11 5,752,455 1/12/2021
3.1.10 8,724,047 11/9/2020
3.1.9 12,650,448 10/13/2020
3.1.8 18,334,376 9/8/2020
3.1.7 10,740,151 8/11/2020
3.1.6 11,347,756 7/14/2020
3.1.5 13,420,890 6/9/2020
3.1.4 18,899,833 5/12/2020
3.1.3 29,593,165 3/24/2020
3.1.2 12,439,162 2/19/2020
3.1.1 21,354,202 1/14/2020
3.1.0 36,806,672 12/3/2019
3.1.0-preview3.19554.8 173,058 11/13/2019
3.1.0-preview2.19525.5 33,782 11/1/2019
3.1.0-preview1.19506.2 805,427 10/15/2019
3.0.3 217,356 2/19/2020
3.0.2 98,219 1/14/2020
3.0.1 1,479,108 11/18/2019
3.0.0 20,172,322 9/23/2019
3.0.0-rc1.19456.14 47,663 9/16/2019
3.0.0-preview9.19423.6 1,410,019 9/4/2019
3.0.0-preview8.19405.11 444,490 8/13/2019
3.0.0-preview7.19362.6 101,889 7/23/2019
3.0.0-preview6.19304.10 176,958 6/12/2019
3.0.0-preview5.19227.1 723,284 5/6/2019
3.0.0-preview4.19216.3 23,500 4/18/2019
3.0.0-preview3.19153.1 211,434 3/6/2019
3.0.0-preview.19074.3 33,630 1/29/2019
3.0.0-preview.18572.1 49,676 12/3/2018
2.3.0 99,565 1/14/2025
2.2.6 33,347,076 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 20,252,969 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 5,508,317 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 6,670,124 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 7,083,096 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 23,540,608 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 187,843 10/17/2018
2.2.0-preview2-35157 160,048 9/12/2018
2.2.0-preview1-35029 87,061 8/22/2018
2.1.14 4,244,356 11/18/2019
2.1.11 3,812,300 5/14/2019
2.1.8 4,030,163 2/12/2019
2.1.4 16,011,775 10/1/2018
2.1.3 5,057,007 9/11/2018
2.1.2 8,337,422 8/21/2018
2.1.1 18,503,260 6/18/2018
2.1.0 13,854,218 5/29/2018
2.1.0-rc1-final 233,300 5/6/2018
2.1.0-preview2-final 219,464 4/10/2018
2.1.0-preview1-final 330,554 2/26/2018
2.0.3 5,723,090 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 7,001,028 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 13,130,359 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 29,221,318 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 100,024 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 1,172,457 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 6,594,639 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 1,305,406 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 250,832 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 329,338 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 5,426,832 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 3,529,542 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 8,674,208 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 48,281 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 73,179 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 60,661 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 76,622 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 766,133 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 94,914 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 941,533 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 2,308,151 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 150,808 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.