Microsoft.EntityFrameworkCore 10.0.0-rc.2.25502.107

Prefix Reserved
This is a prerelease version of Microsoft.EntityFrameworkCore.

Requires NuGet 3.6 or higher.

dotnet add package Microsoft.EntityFrameworkCore --version 10.0.0-rc.2.25502.107
                    
NuGet\Install-Package Microsoft.EntityFrameworkCore -Version 10.0.0-rc.2.25502.107
                    
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="10.0.0-rc.2.25502.107" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.0-rc.2.25502.107" />
                    
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 10.0.0-rc.2.25502.107
                    
#r "nuget: Microsoft.EntityFrameworkCore, 10.0.0-rc.2.25502.107"
                    
#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@10.0.0-rc.2.25502.107
                    
#: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=10.0.0-rc.2.25502.107&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.EntityFrameworkCore&version=10.0.0-rc.2.25502.107&prerelease
                    
Install as a Cake Tool

Entity Framework Core (EF Core) is a modern object-database mapper that lets you build a clean, portable, and high-level data access layer with .NET (C#) across a variety of databases, including SQL Server (on-premises and Azure), SQLite, MySQL, PostgreSQL, Oracle, and Azure Cosmos DB. It supports LINQ queries, change tracking, updates, and schema migrations.

Getting started

Prerequisites

Make sure to install the same version of all EF Core packages shipped by Microsoft. For example, if version 5.0.3 of Microsoft.EntityFrameworkCore.SqlServer is installed, then all other Microsoft.EntityFrameworkCore.* packages must also be at 5.0.3.

Usage

To use Microsoft.EntityFrameworkCore in your application, you will typically need to create a class that inherits from DbContext, which represents your database session. You can then define classes that represent your database entities, and use LINQ queries to interact with the database.

Here's an example of how you might define a database context and an entity:

using Microsoft.EntityFrameworkCore;

public class MyDbContext : DbContext
{
    public DbSet<Customer> Customers { get; set; }
}

public class Customer
{
    public int Id { get; set; }
    public string Name { get; set; }
}

You can then use the MyDbContext class to interact with the database:

using var context = new MyDbContext();

// Add a new customer
context.Customers.Add(new Customer { Name = "John Doe" });
context.SaveChanges();

// Retrieve all customers
var customers = context.Customers.ToList();

Microsoft.EntityFrameworkCore supports multiple database providers, including SQL Server, MySQL, PostgreSQL, SQLite, and others. You will need to install the provider package for your chosen database. For example, to use SQL Server, you would install the Microsoft.EntityFrameworkCore.SqlServer package.

You would then configure your database context to use the SQL Server provider:

using Microsoft.EntityFrameworkCore;

public class MyDbContext : DbContext
{
    protected override void OnConfiguring(DbContextOptionsBuilder options)
        => options.UseSqlServer(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=MyDatabase");

    public DbSet<Customer> Customers { get; set; }
}

public class Customer
{
    public int Id { get; set; }
    public string Name { get; set; }
}

Additional documentation

Feedback

If you have a specific question about using these projects, we encourage you to ask it on Stack Overflow. If you encounter a bug or would like to request a feature, submit an Github issue. For more details, see getting support.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.5K)

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

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.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
kgrzybek/modular-monolith-with-ddd
Full Modular Monolith application with Domain-Driven Design approach.
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 10 RC 1, 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 9 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
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
microsoft/fluentui-blazor
Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
Version Downloads Last Updated
10.0.0-rc.2.25502.107 9,428 10/14/2025
10.0.0-rc.1.25451.107 87,016 9/9/2025
10.0.0-preview.7.25380.108 47,242 8/12/2025
10.0.0-preview.6.25358.103 16,784 7/15/2025
10.0.0-preview.5.25277.114 52,322 6/6/2025
10.0.0-preview.4.25258.110 28,225 5/12/2025
10.0.0-preview.3.25171.6 21,442 4/10/2025
10.0.0-preview.2.25163.8 67,271 3/18/2025
10.0.0-preview.1.25081.1 12,810 2/25/2025
9.0.10 305,936 10/14/2025
9.0.9 3,919,197 9/9/2025
9.0.8 5,226,621 8/5/2025
9.0.7 4,599,659 7/8/2025
9.0.6 5,451,329 6/10/2025
9.0.5 7,112,762 5/13/2025
9.0.4 8,934,270 4/8/2025
9.0.3 8,390,577 3/11/2025
9.0.2 9,081,021 2/11/2025
9.0.1 20,792,068 1/14/2025
9.0.0 24,417,147 11/12/2024
9.0.0-rc.2.24474.1 238,513 10/8/2024
9.0.0-rc.1.24451.1 150,601 9/10/2024
9.0.0-preview.7.24405.3 105,894 8/13/2024
9.0.0-preview.6.24327.4 217,213 7/9/2024
9.0.0-preview.5.24306.3 68,208 6/11/2024
9.0.0-preview.4.24267.1 71,856 5/21/2024
9.0.0-preview.3.24172.4 187,575 4/11/2024
9.0.0-preview.2.24128.4 86,033 3/12/2024
9.0.0-preview.1.24081.2 141,862 2/13/2024
8.0.21 73,749 10/14/2025
8.0.20 982,716 9/9/2025
8.0.19 2,020,677 8/5/2025
8.0.18 1,428,923 7/8/2025
8.0.17 2,965,661 6/10/2025
8.0.16 2,733,577 5/13/2025
8.0.15 3,982,975 4/8/2025
8.0.14 5,005,004 3/11/2025
8.0.13 7,120,868 2/11/2025
8.0.12 6,114,485 1/14/2025
8.0.11 26,662,016 11/12/2024
8.0.10 27,581,756 10/8/2024
8.0.8 32,321,413 8/13/2024
8.0.7 19,436,490 7/9/2024
8.0.6 21,715,591 5/28/2024
8.0.5 9,096,998 5/14/2024
8.0.4 35,309,733 4/9/2024
8.0.3 13,985,603 3/12/2024
8.0.2 29,135,644 2/13/2024
8.0.1 17,975,921 1/9/2024
8.0.0 59,592,626 11/14/2023
8.0.0-rc.2.23480.1 577,231 10/10/2023
8.0.0-rc.1.23419.6 161,418 9/12/2023
8.0.0-preview.7.23375.4 130,139 8/8/2023
8.0.0-preview.6.23329.4 236,828 7/11/2023
8.0.0-preview.5.23280.1 211,176 6/13/2023
8.0.0-preview.4.23259.3 147,291 5/16/2023
8.0.0-preview.3.23174.2 301,816 4/11/2023
8.0.0-preview.2.23128.3 202,822 3/14/2023
8.0.0-preview.1.23111.4 142,691 2/21/2023
7.0.20 5,022,191 5/28/2024
7.0.19 614,014 5/14/2024
7.0.18 2,835,343 4/9/2024
7.0.17 1,787,015 3/12/2024
7.0.16 2,292,292 2/13/2024
7.0.15 3,583,900 1/9/2024
7.0.14 6,665,994 11/14/2023
7.0.13 7,677,423 10/24/2023
7.0.12 4,717,577 10/10/2023
7.0.11 15,153,245 9/12/2023
7.0.10 10,468,522 8/8/2023
7.0.9 9,877,720 7/11/2023
7.0.8 5,955,026 6/22/2023
7.0.7 4,062,583 6/13/2023
7.0.5 27,919,082 4/11/2023
7.0.4 9,908,271 3/14/2023
7.0.3 14,713,330 2/14/2023
7.0.2 20,339,094 1/10/2023
7.0.1 10,853,604 12/13/2022
7.0.0 35,695,772 11/7/2022
7.0.0-rc.2.22472.11 232,250 10/11/2022
7.0.0-rc.1.22426.7 222,469 9/14/2022
7.0.0-preview.7.22376.2 104,701 8/9/2022
7.0.0-preview.6.22329.4 79,683 7/12/2022
7.0.0-preview.5.22302.2 66,603 6/14/2022
7.0.0-preview.4.22229.2 92,435 5/10/2022
7.0.0-preview.3.22175.1 79,826 4/13/2022
7.0.0-preview.2.22153.1 87,080 3/14/2022
7.0.0-preview.1.22076.6 59,765 2/17/2022
6.0.36 2,641,613 11/12/2024
6.0.35 894,454 10/8/2024
6.0.33 2,285,335 8/13/2024
6.0.32 944,813 7/9/2024
6.0.31 1,275,183 5/28/2024
6.0.30 721,134 5/14/2024
6.0.29 3,271,130 4/9/2024
6.0.28 1,866,864 3/12/2024
6.0.27 2,114,235 2/13/2024
6.0.26 2,927,470 1/9/2024
6.0.25 4,015,804 11/14/2023
6.0.24 2,035,225 10/24/2023
6.0.23 1,329,208 10/10/2023
6.0.22 3,623,672 9/12/2023
6.0.21 3,863,146 8/8/2023
6.0.20 3,103,309 7/11/2023
6.0.19 2,614,509 6/22/2023
6.0.18 1,365,103 6/13/2023
6.0.16 8,074,874 4/11/2023
6.0.15 4,458,089 3/14/2023
6.0.14 5,557,965 2/14/2023
6.0.13 7,331,633 1/10/2023
6.0.12 11,515,899 12/13/2022
6.0.11 10,432,705 11/7/2022
6.0.10 18,350,859 10/11/2022
6.0.9 16,036,155 9/13/2022
6.0.8 19,360,284 8/9/2022
6.0.7 52,387,027 7/12/2022
6.0.6 15,647,451 6/14/2022
6.0.5 23,738,466 5/10/2022
6.0.4 18,662,146 4/11/2022
6.0.3 26,857,237 3/8/2022
6.0.2 20,627,862 2/8/2022
6.0.1 34,825,870 12/14/2021
6.0.0 77,381,219 11/8/2021
6.0.0-rc.2.21480.5 336,776 10/12/2021
6.0.0-rc.1.21452.10 275,048 9/14/2021
6.0.0-preview.7.21378.4 103,013 8/10/2021
6.0.0-preview.6.21352.1 45,289 7/14/2021
6.0.0-preview.5.21301.9 193,574 6/15/2021
6.0.0-preview.4.21253.1 79,862 5/24/2021
6.0.0-preview.3.21201.2 103,406 4/8/2021
6.0.0-preview.2.21154.2 75,306 3/11/2021
6.0.0-preview.1.21102.2 98,757 2/12/2021
5.0.17 8,460,462 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 1,563,741 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 2,426,223 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 2,435,654 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 4,658,591 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 5,013,600 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 8,723,722 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 14,106,994 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 10,751,334 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 10,142,129 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 15,144,934 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 8,512,864 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 11,920,153 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 8,648,760 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 8,292,090 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 10,789,901 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 16,661,862 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 28,542,802 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 391,102 10/13/2020
5.0.0-rc.1.20451.13 323,682 9/14/2020
5.0.0-preview.8.20407.4 210,101 8/25/2020
5.0.0-preview.7.20365.15 119,461 7/21/2020
5.0.0-preview.6.20312.4 64,761 6/25/2020
5.0.0-preview.5.20278.2 51,427 6/10/2020
5.0.0-preview.4.20220.10 74,780 5/18/2020
5.0.0-preview.3.20181.2 95,563 4/23/2020
5.0.0-preview.2.20159.4 62,945 4/2/2020
5.0.0-preview.2.20120.8 46,481 3/16/2020
3.1.32 7,708,625 12/13/2022
3.1.31 1,650,826 11/8/2022
3.1.30 849,314 10/11/2022
3.1.29 1,494,675 9/13/2022
3.1.28 952,309 8/9/2022
3.1.27 824,487 7/12/2022
3.1.26 724,157 6/14/2022
3.1.25 1,167,622 5/10/2022
3.1.24 693,209 4/11/2022
3.1.23 1,128,426 3/8/2022
3.1.22 3,837,959 12/14/2021
3.1.21 2,747,325 11/7/2021
3.1.20 1,743,504 10/11/2021
3.1.19 2,582,052 9/14/2021
3.1.18 5,821,379 8/10/2021
3.1.17 1,984,577 7/13/2021
3.1.16 2,481,434 6/8/2021
3.1.15 3,059,884 5/11/2021
3.1.14 3,250,036 4/6/2021
3.1.13 4,895,235 3/9/2021
3.1.12 3,115,390 2/9/2021
3.1.11 5,645,607 1/12/2021
3.1.10 8,606,019 11/9/2020
3.1.9 12,445,923 10/13/2020
3.1.8 18,164,949 9/8/2020
3.1.7 10,522,578 8/11/2020
3.1.6 11,209,026 7/14/2020
3.1.5 13,265,539 6/9/2020
3.1.4 18,588,675 5/12/2020
3.1.3 29,067,751 3/24/2020
3.1.2 12,291,001 2/19/2020
3.1.1 20,908,200 1/14/2020
3.1.0 35,976,664 12/3/2019
3.1.0-preview3.19554.8 171,475 11/13/2019
3.1.0-preview2.19525.5 33,509 11/1/2019
3.1.0-preview1.19506.2 787,427 10/15/2019
3.0.3 202,910 2/19/2020
3.0.2 87,173 1/14/2020
3.0.1 1,450,704 11/18/2019
3.0.0 19,807,016 9/23/2019
3.0.0-rc1.19456.14 47,383 9/16/2019
3.0.0-preview9.19423.6 1,401,182 9/4/2019
3.0.0-preview8.19405.11 442,577 8/13/2019
3.0.0-preview7.19362.6 97,556 7/23/2019
3.0.0-preview6.19304.10 175,883 6/12/2019
3.0.0-preview5.19227.1 718,502 5/6/2019
3.0.0-preview4.19216.3 23,329 4/18/2019
3.0.0-preview3.19153.1 210,320 3/6/2019
3.0.0-preview.19074.3 32,875 1/29/2019
3.0.0-preview.18572.1 49,281 12/3/2018
2.3.0 49,414 1/14/2025
2.2.6 32,827,307 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 20,013,626 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 5,452,601 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 6,583,783 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 7,024,287 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 22,863,599 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 186,643 10/17/2018
2.2.0-preview2-35157 156,073 9/12/2018
2.2.0-preview1-35029 86,728 8/22/2018
2.1.14 4,142,846 11/18/2019
2.1.11 3,761,335 5/14/2019
2.1.8 3,919,410 2/12/2019
2.1.4 15,865,351 10/1/2018
2.1.3 4,990,589 9/11/2018
2.1.2 8,246,191 8/21/2018
2.1.1 17,706,470 6/18/2018
2.1.0 13,652,471 5/29/2018
2.1.0-rc1-final 230,094 5/6/2018
2.1.0-preview2-final 214,242 4/10/2018
2.1.0-preview1-final 326,414 2/26/2018
2.0.3 5,558,489 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 6,887,162 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 12,930,997 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 28,553,393 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 99,056 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 1,152,044 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 6,319,810 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 1,281,709 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 237,429 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 317,548 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 5,297,931 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 3,419,241 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 8,217,945 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 47,898 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 61,922 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 49,771 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 64,798 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 722,949 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 84,299 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 884,556 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 2,118,855 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 148,409 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.