Microsoft.EntityFrameworkCore 10.0.0-rc.2.25502.107

Prefix Reserved
This is a prerelease version of Microsoft.EntityFrameworkCore.
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 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.7K)

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

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 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 161,044 11/11/2025
10.0.0-rc.2.25502.107 104,621 10/14/2025
10.0.0-rc.1.25451.107 115,932 9/9/2025
10.0.0-preview.7.25380.108 51,236 8/12/2025
10.0.0-preview.6.25358.103 17,290 7/15/2025
10.0.0-preview.5.25277.114 57,260 6/6/2025
10.0.0-preview.4.25258.110 29,087 5/12/2025
10.0.0-preview.3.25171.6 21,962 4/10/2025
10.0.0-preview.2.25163.8 75,914 3/18/2025
10.0.0-preview.1.25081.1 13,122 2/25/2025
9.0.11 140,719 11/11/2025
9.0.10 3,079,069 10/14/2025
9.0.9 5,871,035 9/9/2025
9.0.8 6,367,809 8/5/2025
9.0.7 5,396,357 7/8/2025
9.0.6 6,194,145 6/10/2025
9.0.5 7,970,705 5/13/2025
9.0.4 9,783,673 4/8/2025
9.0.3 8,881,881 3/11/2025
9.0.2 9,735,891 2/11/2025
9.0.1 23,939,370 1/14/2025
9.0.0 27,033,304 11/12/2024
9.0.0-rc.2.24474.1 243,564 10/8/2024
9.0.0-rc.1.24451.1 153,390 9/10/2024
9.0.0-preview.7.24405.3 109,004 8/13/2024
9.0.0-preview.6.24327.4 227,995 7/9/2024
9.0.0-preview.5.24306.3 70,468 6/11/2024
9.0.0-preview.4.24267.1 73,563 5/21/2024
9.0.0-preview.3.24172.4 189,723 4/11/2024
9.0.0-preview.2.24128.4 88,492 3/12/2024
9.0.0-preview.1.24081.2 144,711 2/13/2024
8.0.22 76,297 11/11/2025
8.0.21 757,807 10/14/2025
8.0.20 1,528,953 9/9/2025
8.0.19 2,708,085 8/5/2025
8.0.18 1,774,454 7/8/2025
8.0.17 3,335,596 6/10/2025
8.0.16 3,112,339 5/13/2025
8.0.15 4,414,497 4/8/2025
8.0.14 5,570,763 3/11/2025
8.0.13 7,898,351 2/11/2025
8.0.12 6,608,053 1/14/2025
8.0.11 29,258,740 11/12/2024
8.0.10 29,120,888 10/8/2024
8.0.8 33,872,165 8/13/2024
8.0.7 20,212,581 7/9/2024
8.0.6 22,552,531 5/28/2024
8.0.5 9,392,459 5/14/2024
8.0.4 36,797,388 4/9/2024
8.0.3 14,419,096 3/12/2024
8.0.2 30,344,974 2/13/2024
8.0.1 18,603,931 1/9/2024
8.0.0 62,947,316 11/14/2023
8.0.0-rc.2.23480.1 585,627 10/10/2023
8.0.0-rc.1.23419.6 163,170 9/12/2023
8.0.0-preview.7.23375.4 132,311 8/8/2023
8.0.0-preview.6.23329.4 241,977 7/11/2023
8.0.0-preview.5.23280.1 214,203 6/13/2023
8.0.0-preview.4.23259.3 148,852 5/16/2023
8.0.0-preview.3.23174.2 317,196 4/11/2023
8.0.0-preview.2.23128.3 203,540 3/14/2023
8.0.0-preview.1.23111.4 143,174 2/21/2023
7.0.20 5,298,602 5/28/2024
7.0.19 629,622 5/14/2024
7.0.18 2,926,278 4/9/2024
7.0.17 1,809,731 3/12/2024
7.0.16 2,326,486 2/13/2024
7.0.15 3,638,065 1/9/2024
7.0.14 6,748,000 11/14/2023
7.0.13 7,833,679 10/24/2023
7.0.12 4,764,617 10/10/2023
7.0.11 15,414,886 9/12/2023
7.0.10 10,606,696 8/8/2023
7.0.9 10,000,370 7/11/2023
7.0.8 6,012,357 6/22/2023
7.0.7 4,108,252 6/13/2023
7.0.5 28,266,058 4/11/2023
7.0.4 9,982,725 3/14/2023
7.0.3 14,849,900 2/14/2023
7.0.2 20,564,163 1/10/2023
7.0.1 10,992,509 12/13/2022
7.0.0 36,651,237 11/7/2022
7.0.0-rc.2.22472.11 233,991 10/11/2022
7.0.0-rc.1.22426.7 223,320 9/14/2022
7.0.0-preview.7.22376.2 105,354 8/9/2022
7.0.0-preview.6.22329.4 80,139 7/12/2022
7.0.0-preview.5.22302.2 66,916 6/14/2022
7.0.0-preview.4.22229.2 93,108 5/10/2022
7.0.0-preview.3.22175.1 79,956 4/13/2022
7.0.0-preview.2.22153.1 87,370 3/14/2022
7.0.0-preview.1.22076.6 60,084 2/17/2022
6.0.36 2,924,702 11/12/2024
6.0.35 945,120 10/8/2024
6.0.33 2,392,447 8/13/2024
6.0.32 971,271 7/9/2024
6.0.31 1,306,740 5/28/2024
6.0.30 737,880 5/14/2024
6.0.29 3,379,557 4/9/2024
6.0.28 1,915,009 3/12/2024
6.0.27 2,158,928 2/13/2024
6.0.26 2,981,797 1/9/2024
6.0.25 4,078,155 11/14/2023
6.0.24 2,056,853 10/24/2023
6.0.23 1,345,069 10/10/2023
6.0.22 3,669,931 9/12/2023
6.0.21 3,906,568 8/8/2023
6.0.20 3,141,534 7/11/2023
6.0.19 2,652,315 6/22/2023
6.0.18 1,380,230 6/13/2023
6.0.16 8,165,579 4/11/2023
6.0.15 4,494,917 3/14/2023
6.0.14 5,599,796 2/14/2023
6.0.13 7,392,255 1/10/2023
6.0.12 11,631,297 12/13/2022
6.0.11 10,513,405 11/7/2022
6.0.10 18,477,754 10/11/2022
6.0.9 16,160,778 9/13/2022
6.0.8 19,509,588 8/9/2022
6.0.7 52,813,929 7/12/2022
6.0.6 15,792,053 6/14/2022
6.0.5 23,939,752 5/10/2022
6.0.4 18,782,367 4/11/2022
6.0.3 27,220,408 3/8/2022
6.0.2 20,770,178 2/8/2022
6.0.1 35,135,768 12/14/2021
6.0.0 78,952,156 11/8/2021
6.0.0-rc.2.21480.5 337,916 10/12/2021
6.0.0-rc.1.21452.10 275,729 9/14/2021
6.0.0-preview.7.21378.4 103,461 8/10/2021
6.0.0-preview.6.21352.1 45,418 7/14/2021
6.0.0-preview.5.21301.9 194,672 6/15/2021
6.0.0-preview.4.21253.1 80,028 5/24/2021
6.0.0-preview.3.21201.2 103,799 4/8/2021
6.0.0-preview.2.21154.2 75,351 3/11/2021
6.0.0-preview.1.21102.2 99,033 2/12/2021
5.0.17 8,575,408 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 1,571,917 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 2,437,323 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 2,446,372 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 4,689,235 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 5,037,179 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 8,766,596 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 14,198,979 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 10,804,912 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 10,209,368 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 15,255,765 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 8,549,531 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 11,979,837 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 8,687,277 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 8,312,538 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 10,811,061 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 16,757,276 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 28,795,997 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 392,035 10/13/2020
5.0.0-rc.1.20451.13 324,009 9/14/2020
5.0.0-preview.8.20407.4 210,583 8/25/2020
5.0.0-preview.7.20365.15 119,715 7/21/2020
5.0.0-preview.6.20312.4 64,987 6/25/2020
5.0.0-preview.5.20278.2 51,651 6/10/2020
5.0.0-preview.4.20220.10 74,906 5/18/2020
5.0.0-preview.3.20181.2 95,643 4/23/2020
5.0.0-preview.2.20159.4 63,183 4/2/2020
5.0.0-preview.2.20120.8 46,544 3/16/2020
3.1.32 8,073,451 12/13/2022
3.1.31 1,756,768 11/8/2022
3.1.30 872,307 10/11/2022
3.1.29 1,531,630 9/13/2022
3.1.28 968,247 8/9/2022
3.1.27 841,560 7/12/2022
3.1.26 730,798 6/14/2022
3.1.25 1,178,062 5/10/2022
3.1.24 697,779 4/11/2022
3.1.23 1,134,657 3/8/2022
3.1.22 3,900,514 12/14/2021
3.1.21 2,760,618 11/7/2021
3.1.20 1,762,838 10/11/2021
3.1.19 2,595,360 9/14/2021
3.1.18 5,917,484 8/10/2021
3.1.17 1,996,942 7/13/2021
3.1.16 2,492,271 6/8/2021
3.1.15 3,093,477 5/11/2021
3.1.14 3,268,200 4/6/2021
3.1.13 4,932,671 3/9/2021
3.1.12 3,128,321 2/9/2021
3.1.11 5,668,210 1/12/2021
3.1.10 8,637,092 11/9/2020
3.1.9 12,497,015 10/13/2020
3.1.8 18,215,650 9/8/2020
3.1.7 10,581,041 8/11/2020
3.1.6 11,246,012 7/14/2020
3.1.5 13,306,793 6/9/2020
3.1.4 18,670,692 5/12/2020
3.1.3 29,198,540 3/24/2020
3.1.2 12,332,023 2/19/2020
3.1.1 21,023,242 1/14/2020
3.1.0 36,207,102 12/3/2019
3.1.0-preview3.19554.8 172,151 11/13/2019
3.1.0-preview2.19525.5 33,572 11/1/2019
3.1.0-preview1.19506.2 791,913 10/15/2019
3.0.3 204,017 2/19/2020
3.0.2 87,396 1/14/2020
3.0.1 1,456,358 11/18/2019
3.0.0 19,901,701 9/23/2019
3.0.0-rc1.19456.14 47,506 9/16/2019
3.0.0-preview9.19423.6 1,403,329 9/4/2019
3.0.0-preview8.19405.11 444,028 8/13/2019
3.0.0-preview7.19362.6 98,776 7/23/2019
3.0.0-preview6.19304.10 176,617 6/12/2019
3.0.0-preview5.19227.1 722,560 5/6/2019
3.0.0-preview4.19216.3 23,383 4/18/2019
3.0.0-preview3.19153.1 211,098 3/6/2019
3.0.0-preview.19074.3 33,032 1/29/2019
3.0.0-preview.18572.1 49,329 12/3/2018
2.3.0 59,948 1/14/2025
2.2.6 32,969,637 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 20,087,200 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 5,466,933 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 6,606,728 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 7,040,396 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 23,060,829 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 186,977 10/17/2018
2.2.0-preview2-35157 157,431 9/12/2018
2.2.0-preview1-35029 86,814 8/22/2018
2.1.14 4,167,236 11/18/2019
2.1.11 3,771,812 5/14/2019
2.1.8 3,947,261 2/12/2019
2.1.4 15,911,603 10/1/2018
2.1.3 5,006,469 9/11/2018
2.1.2 8,268,461 8/21/2018
2.1.1 17,919,278 6/18/2018
2.1.0 13,707,216 5/29/2018
2.1.0-rc1-final 232,044 5/6/2018
2.1.0-preview2-final 217,923 4/10/2018
2.1.0-preview1-final 329,041 2/26/2018
2.0.3 5,597,149 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 6,919,468 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 12,986,325 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 28,746,591 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 99,485 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 1,158,616 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 6,390,751 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 1,288,348 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 238,297 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 318,203 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 5,333,600 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 3,449,776 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 8,337,508 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 48,071 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 62,258 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 49,990 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 65,115 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 733,166 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 84,419 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 897,989 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 2,165,915 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 149,148 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.