EntityFramework 6.5.1
Prefix Reserveddotnet add package EntityFramework --version 6.5.1
NuGet\Install-Package EntityFramework -Version 6.5.1
<PackageReference Include="EntityFramework" Version="6.5.1" />
<PackageVersion Include="EntityFramework" Version="6.5.1" />
<PackageReference Include="EntityFramework" />
paket add EntityFramework --version 6.5.1
#r "nuget: EntityFramework, 6.5.1"
#:package EntityFramework@6.5.1
#addin nuget:?package=EntityFramework&version=6.5.1
#tool nuget:?package=EntityFramework&version=6.5.1
Entity Framework 6
Entity Framework 6 (EF6) is a tried and tested object-relational mapper for .NET with many years of feature development and stabilization. It eliminates the need for most of the data-access code that developers usually need to write.
Status and Support
The latest version of EF6 is still supported by Microsoft--see Entity Framework Support Policies for details. However, EF6 is no longer being actively developed. This means that:
- Security issues will be fixed, as for any supported product.
 - High-impact bugs, typically those impacting a very large number of users, may be fixed.
 - Other bugs will not be fixed.
 - New features will not be implemented
 
This plan focuses on stability of the codebase and compatibility of new versions above all else, excepting security. In general, the EF6 codebase is reliable and has been stable for several years with few significant bugs. However, due to the complexity and number of usage scenarios, and also the sheer number of applications that use EF6, any change has the potential to regress existing behaviors. This is why we will be making only security fixes. Also, we will not be accepting pull requests made by the community, again to ensure stability of the codebase.
Entity Framework Core
Entity Framework Core (EF Core) is a lightweight and extensible version of Entity Framework and continues to be actively developed on the EFCore GitHub repo. EF Core is developed exclusively for modern .NET and does not run on .NET Framework. EF Core includes many improvements and new features over EF6. EF Core has a different architecture to EF6 and takes a very different approach to its internals--for example, EF Core does not support a visual designer or EDMX files. However, most EF6 projects can be ported to EF Core with some amount of work--see Port from EF6 to EF Core for a guide.
Getting help
See the EF6 docs for installation, documentation, tutorials, samples, etc. This documentation is no longer being updated, but still contains useful and usable content.
The EF team is focusing efforts on EF Core, and hence team members are unlikely to respond to issues filed on this repo. We recommend asking questions on Stack Overflow.
You may instead choose to contact a Microsoft Support professional for support. Please note that this may incur a fee.
EF6 Tools for Visual Studio
The code for the EF6 Tools for VS (including the visual designer) can be found in the EF6Tools repo.
EF6 PowerTools
The EF6 PowerTools is a community-driven project with its own GitHub repo.
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. 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. | 
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.1 is compatible. | 
| .NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
- 
                                                    
.NETFramework 4.0
- No dependencies.
 
 - 
                                                    
.NETFramework 4.5
- No dependencies.
 
 - 
                                                    
.NETStandard 2.1
- Microsoft.CSharp (>= 4.7.0)
 - System.CodeDom (>= 6.0.0)
 - System.ComponentModel.Annotations (>= 5.0.0)
 - System.Configuration.ConfigurationManager (>= 6.0.1)
 - System.Data.SqlClient (>= 4.8.6)
 
 
NuGet packages (2.7K)
Showing the top 5 NuGet packages that depend on EntityFramework:
| Package | Downloads | 
|---|---|
| 
                                                        
                                                            Microsoft.AspNet.Identity.EntityFramework
                                                        
                                                            
                                                         ASP.NET Identity providers that use Entity Framework.  | 
                                                    |
| 
                                                        
                                                            LinqKit
                                                        
                                                         LinqKit.EntityFramework contains extensions for LINQ to SQL and Entity Framework. Include(...) and IAsync are supported.  | 
                                                    |
| 
                                                        
                                                            System.Data.SQLite.EF6
                                                        
                                                            
                                                         System.Data.SQLite for Entity Framework 6  | 
                                                    |
| 
                                                        
                                                            Microsoft.AspNet.Providers.Core
                                                        
                                                            
                                                         ASP.NET Universal Providers add provider support in ASP.NET 4 for all editions of SQL Server 2005 and later and to SQL Azure. If you use these providers to develop your application, the application will be ready for cloud environments like Azure. Other than supporting additional storage options, the providers work like the existing SQL-based providers, so that you can easily switch an application to use cloud storage via SQL Azure.  | 
                                                    |
| 
                                                        
                                                            Z.EntityFramework.Extensions
                                                        
                                                            
                                                         Entity Framework Extensions extends your DbContext with high-performance bulk operations: BulkSaveChanges, BulkInsert, BulkUpdate, BulkDelete, BulkMerge, and more. Support: SQL Server, MySQL, Oracle, PostgreSQL, SQLite, and more! Example: https://dotnetfiddle.net/awlJdf Benchmark: https://dotnetfiddle.net/35mQ0W Include free and prime features.  | 
                                                    
GitHub repositories (368)
Showing the top 20 popular GitHub repositories that depend on EntityFramework:
| Repository | Stars | 
|---|---|
| 
                                                        
                                                            microsoft/semantic-kernel
                                                        
                                                         
                                                            Integrate cutting-edge LLM technology quickly and easily into your apps
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            peass-ng/PEASS-ng
                                                        
                                                         
                                                            PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            DapperLib/Dapper
                                                        
                                                         
                                                            Dapper - a simple object mapper for .Net
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnet/AspNetCore.Docs
                                                        
                                                         
                                                            Documentation for ASP.NET Core
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            aspnetboilerplate/aspnetboilerplate
                                                        
                                                         
                                                            ASP.NET Boilerplate - Web Application Framework
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            JeffreySu/WeiXinMPSDK
                                                        
                                                         
                                                            微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            MassTransit/MassTransit
                                                        
                                                         
                                                            Distributed Application Framework for .NET
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            stride3d/stride
                                                        
                                                         
                                                            Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            devlooped/moq
                                                        
                                                         
                                                            The most popular and friendly mocking framework for .NET
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            DotNetNext/SqlSugar
                                                        
                                                         
                                                            .Net aot ORM   SqlServer ORM Mongodb ORM MySql  瀚高 Postgresql ORM  DB2 Hana 高斯 Duckdb C# VB.NET Sqlite  ORM Oracle ORM Mysql Orm 虚谷数据库 达梦 ORM 人大金仓 ORM 神通ORM  C# ORM , C# ORM .NET ORM NET9 ORM .NET8 ORM ClickHouse ORM QuestDb ,TDengine ORM,OceanBase ORM,GaussDB ORM,Tidb ORM Object/Relational Mapping
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            ServiceStack/ServiceStack
                                                        
                                                         
                                                            Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            openiddict/openiddict-core
                                                        
                                                         
                                                            Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            MapsterMapper/Mapster
                                                        
                                                         
                                                            A fast, fun and stimulating object to object Mapper
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            Planshit/Tai
                                                        
                                                         
                                                            👻 在Windows上统计软件使用时长和网站浏览时长
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            xamarin/xamarin-forms-samples
                                                        
                                                         
                                                            Sample apps built using the Xamarin.Forms framework
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            dotnet/samples
                                                        
                                                         
                                                            Sample code referenced by the .NET documentation
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            ElevenPaths/FOCA
                                                        
                                                         
                                                            Tool to find metadata and hidden information in the documents.
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            MiniProfiler/dotnet
                                                        
                                                         
                                                            A simple but effective mini-profiler for ASP.NET (and Core) websites
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            hitchao/Jvedio
                                                        
                                                         
                                                            Jvedio 是本地视频管理软件,支持扫描本地视频并导入软件,建立视频库, 提取出视频的 唯一识别码,自动分类视频, 添加标签管理视频,使用人工智能识别演员,支持翻译信息, 基于 FFmpeg 截取视频图片,Window 桌面端流畅美观的应用软件
                                                         
                                                     | 
                                                    |
| 
                                                        
                                                            smartstore/SmartStoreNET
                                                        
                                                         
                                                            Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 6.5.1 | 13,962,534 | 6/17/2024 | |
| 6.5.0 | 4,576,034 | 6/14/2024 | |
| 6.5.0-preview2-24180-01 | 28,813 | 4/18/2024 | |
| 6.4.4 | 86,752,662 | 5/12/2020 | |
| 6.4.0 | 18,892,403 | 12/3/2019 | |
| 6.4.0-preview3-19553-01 | 111,295 | 11/13/2019 | |
| 6.4.0-preview2-19525-03 | 15,861 | 11/1/2019 | |
| 6.4.0-preview1-19506-01 | 29,117 | 10/15/2019 | |
| 6.3.0 | 30,091,952 | 9/23/2019 | |
| 6.3.0-rc1-19458-04 | 9,420 | 9/16/2019 | |
| 6.3.0-preview9-19423-04 | 15,581 | 9/4/2019 | |
| 6.3.0-preview8-19405-04 | 54,951 | 8/13/2019 | |
| 6.3.0-preview7-19363-02 | 219,553 | 7/23/2019 | |
| 6.3.0-preview6-19304-03 | 59,448 | 6/12/2019 | |
| 6.3.0-preview5-19254-05 | 47,720 | 5/7/2019 | |
| 6.2.0 | 60,245,124 | 10/26/2017 | |
| 6.2.0-beta1 | 277,210 | 5/19/2017 | |
| 6.1.3 | 69,930,088 | 3/10/2015 | |
| 6.1.3-beta1 | 406,319 | 2/11/2015 | |
| 6.1.2 | 4,650,437 | 12/22/2014 | |
| 6.1.2-beta2 | 87,341 | 11/14/2014 | |
| 6.1.2-beta1 | 182,690 | 9/18/2014 | |
| 6.1.1 | 9,412,095 | 6/20/2014 | |
| 6.1.1-beta1 | 83,855 | 5/20/2014 | |
| 6.1.0 | 13,896,467 | 3/17/2014 | |
| 6.1.0-beta1 | 107,023 | 2/11/2014 | |
| 6.1.0-alpha1 | 100,182 | 12/20/2013 | |
| 6.0.2 | 4,198,676 | 12/13/2013 | |
| 6.0.2-beta1 | 79,433 | 11/27/2013 | |
| 6.0.1 | 2,349,264 | 10/17/2013 | |
| 6.0.0 | 17,718,304 | 10/17/2013 | |
| 6.0.0-rc1 | 141,450 | 8/21/2013 | |
| 6.0.0-beta1 | 159,981 | 5/28/2013 | |
| 6.0.0-alpha3 | 86,922 | 2/25/2013 | |
| 6.0.0-alpha2 | 79,139 | 12/10/2012 | |
| 6.0.0-alpha1 | 67,663 | 10/25/2012 | |
| 5.0.0 | 17,478,119 | 8/11/2012 | |
| 5.0.0-rc | 241,334 | 5/15/2012 | |
| 5.0.0-beta2 | 42,478 | 3/22/2012 | |
| 5.0.0-beta1 | 81,972 | 2/29/2012 | |
| 4.3.1 | 1,066,687 | 2/29/2012 | |
| 4.3.0 | 196,756 | 2/9/2012 | |
| 4.3.0-beta1 | 27,012 | 1/13/2012 | |
| 4.2.0 | 584,584 | 11/1/2011 | |
| 4.1.10715 | 983,912 | 7/25/2011 | |
| 4.1.10331 | 1,499,943 | 4/12/2011 |