Microsoft.EntityFrameworkCore.InMemory 10.0.1

Prefix Reserved

Requires NuGet 3.6 or higher.

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

Microsoft.EntityFrameworkCore.InMemory is the EF Core database provider package for the built-in in-memory database.

This database provider allows Entity Framework Core to be used with an in-memory database. While it has become common to use the in-memory database for testing, this is discouraged. For more information on how to test EF Core applications, see Testing EF Core Applications.

Usage

Call the UseInMemoryDatabase method to choose the SQL Server/Azure SQL database provider for your DbContext. For example:

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
    optionsBuilder.UseInMemoryDatabase("MyDatabase");
}

Getting started with EF Core

See Getting started with EF Core for more information about EF NuGet packages, including which to install when getting started.

Additional documentation

See Microsoft SQL Server EF Core Database Provider for more information about the features of this database provider.

Feedback

If you encounter a bug or issues with this package,you can open 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 (707)

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

Package Downloads
Microsoft.AspNetCore.App

Provides a default set of APIs for building an ASP.NET Core application. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

Microsoft.AspNetCore.All

Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.

AspNetCore.HealthChecks.UI.InMemory.Storage

HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI

EntityFrameworkCore.Testing.Moq

Adds relational support to the Microsoft EntityFrameworkCore in-memory database provider by mocking relational operations. EntityFrameworkCore.Testing v1.x = EntityFrameworkCore 2 (2.1.0+) EntityFrameworkCore.Testing v2.x = EntityFrameworkCore 3 EntityFrameworkCore.Testing v3.x = EntityFrameworkCore 5 EntityFrameworkCore.Testing v4.x = EntityFrameworkCore 6 EntityFrameworkCore.Testing v5.x = EntityFrameworkCore 7 EntityFrameworkCore.Testing v8.x = EntityFrameworkCore 8 EntityFrameworkCore.Testing v9.x = EntityFrameworkCore 9 EntityFrameworkCore.Testing v10.x = EntityFrameworkCore 10

Reo.Core.Testing

Package Description

GitHub repositories (339)

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

Repository Stars
ardalis/CleanArchitecture
Clean Architecture Solution Template: A proven Clean Architecture Template for ASP.NET Core 10
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
dotnet-architecture/eShopOnWeb
Sample ASP.NET Core 8.0 reference application, now community supported: https://github.com/NimblePros/eShopOnWeb
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.
Kareadita/Kavita
Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
davidfowl/AspNetCoreDiagnosticScenarios
This repository has examples of broken patterns in ASP.NET Core applications
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!
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
cobbr/Covenant
Covenant is a collaborative .NET C2 framework for red teamers.
dotnetcore/WTM
Use WTM to write .netcore app fast !!!
Xabaril/AspNetCore.Diagnostics.HealthChecks
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
ivanpaulovich/clean-architecture-manga
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
radzenhq/radzen-blazor
Radzen Blazor is the most sophisticated free UI component library for Blazor, featuring 100+ native components including DataGrid, Scheduler, Charts, and advanced theming with full support for Material Design and Fluent UI.
rnwood/smtp4dev
smtp4dev - the fake smtp email server for development and testing
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
Version Downloads Last Updated
10.0.1 426,792 12/9/2025
10.0.0 815,554 11/11/2025
10.0.0-rc.2.25502.107 25,821 10/14/2025
10.0.0-rc.1.25451.107 25,356 9/9/2025
10.0.0-preview.7.25380.108 8,490 8/12/2025
10.0.0-preview.6.25358.103 4,240 7/15/2025
10.0.0-preview.5.25277.114 10,313 6/6/2025
10.0.0-preview.4.25258.110 15,969 5/12/2025
10.0.0-preview.3.25171.6 3,046 4/10/2025
10.0.0-preview.2.25163.8 2,231 3/18/2025
10.0.0-preview.1.25081.1 3,133 2/25/2025
9.0.11 603,018 11/11/2025
9.0.10 1,522,855 10/14/2025
9.0.9 2,068,688 9/9/2025
9.0.8 1,896,272 8/5/2025
9.0.7 1,460,833 7/8/2025
9.0.6 1,721,935 6/10/2025
9.0.5 1,839,099 5/13/2025
9.0.4 2,135,277 4/8/2025
9.0.3 1,798,008 3/11/2025
9.0.2 1,979,569 2/11/2025
9.0.1 2,064,239 1/14/2025
9.0.0 4,444,826 11/12/2024
9.0.0-rc.2.24474.1 47,097 10/8/2024
9.0.0-rc.1.24451.1 33,767 9/10/2024
9.0.0-preview.7.24405.3 14,521 8/13/2024
9.0.0-preview.6.24327.4 197,516 7/9/2024
9.0.0-preview.5.24306.3 14,085 6/11/2024
9.0.0-preview.4.24267.1 26,621 5/21/2024
9.0.0-preview.3.24172.4 86,371 4/11/2024
9.0.0-preview.2.24128.4 13,685 3/12/2024
9.0.0-preview.1.24081.2 37,918 2/13/2024
8.0.22 359,430 11/11/2025
8.0.21 426,864 10/14/2025
8.0.20 465,266 9/9/2025
8.0.19 699,510 8/5/2025
8.0.18 580,813 7/8/2025
8.0.17 787,033 6/10/2025
8.0.16 816,185 5/13/2025
8.0.15 1,045,422 4/8/2025
8.0.14 1,355,267 3/11/2025
8.0.13 1,253,462 2/11/2025
8.0.12 1,567,322 1/14/2025
8.0.11 7,552,651 11/12/2024
8.0.10 7,342,644 10/8/2024
8.0.8 7,879,258 8/13/2024
8.0.7 4,489,554 7/9/2024
8.0.6 5,117,026 5/28/2024
8.0.5 1,706,942 5/14/2024
8.0.4 4,664,913 4/9/2024
8.0.3 3,205,806 3/12/2024
8.0.2 3,923,237 2/13/2024
8.0.1 3,515,412 1/9/2024
8.0.0 11,602,729 11/14/2023
8.0.0-rc.2.23480.1 35,879 10/10/2023
8.0.0-rc.1.23419.6 15,142 9/12/2023
8.0.0-preview.7.23375.4 14,416 8/8/2023
8.0.0-preview.6.23329.4 28,567 7/11/2023
8.0.0-preview.5.23280.1 38,354 6/13/2023
8.0.0-preview.4.23259.3 23,994 5/16/2023
8.0.0-preview.3.23174.2 49,545 4/11/2023
8.0.0-preview.2.23128.3 109,020 3/14/2023
8.0.0-preview.1.23111.4 67,257 2/21/2023
7.0.20 1,266,688 5/28/2024
7.0.19 106,420 5/14/2024
7.0.18 487,567 4/9/2024
7.0.17 277,509 3/12/2024
7.0.16 443,218 2/13/2024
7.0.15 644,602 1/9/2024
7.0.14 1,363,404 11/14/2023
7.0.13 1,293,583 10/24/2023
7.0.12 1,432,856 10/10/2023
7.0.11 3,086,456 9/12/2023
7.0.10 2,453,136 8/8/2023
7.0.9 3,167,164 7/11/2023
7.0.8 1,105,194 6/22/2023
7.0.7 711,588 6/13/2023
7.0.5 4,323,048 4/11/2023
7.0.4 2,220,690 3/14/2023
7.0.3 2,351,809 2/14/2023
7.0.2 2,552,614 1/10/2023
7.0.1 1,764,309 12/13/2022
7.0.0 3,165,610 11/7/2022
7.0.0-rc.2.22472.11 63,318 10/11/2022
7.0.0-rc.1.22426.7 97,147 9/14/2022
7.0.0-preview.7.22376.2 15,015 8/9/2022
7.0.0-preview.6.22329.4 8,391 7/12/2022
7.0.0-preview.5.22302.2 21,360 6/14/2022
7.0.0-preview.4.22229.2 17,409 5/10/2022
7.0.0-preview.3.22175.1 34,862 4/13/2022
7.0.0-preview.2.22153.1 15,259 3/14/2022
7.0.0-preview.1.22076.6 7,947 2/17/2022
6.0.36 605,421 11/12/2024
6.0.35 179,469 10/8/2024
6.0.33 1,404,627 8/13/2024
6.0.32 201,301 7/9/2024
6.0.31 368,290 5/28/2024
6.0.30 210,559 5/14/2024
6.0.29 651,040 4/9/2024
6.0.28 414,768 3/12/2024
6.0.27 346,165 2/13/2024
6.0.26 619,017 1/9/2024
6.0.25 855,421 11/14/2023
6.0.24 644,640 10/24/2023
6.0.23 215,907 10/10/2023
6.0.22 616,719 9/12/2023
6.0.21 683,938 8/8/2023
6.0.20 559,614 7/11/2023
6.0.19 436,103 6/22/2023
6.0.18 305,309 6/13/2023
6.0.16 1,811,742 4/11/2023
6.0.15 853,099 3/14/2023
6.0.14 1,141,393 2/14/2023
6.0.13 1,637,513 1/10/2023
6.0.12 1,310,410 12/13/2022
6.0.11 2,378,747 11/7/2022
6.0.10 3,830,093 10/11/2022
6.0.9 3,324,023 9/13/2022
6.0.8 3,973,887 8/9/2022
6.0.7 9,075,498 7/12/2022
6.0.6 2,763,184 6/14/2022
6.0.5 3,550,348 5/10/2022
6.0.4 3,278,038 4/11/2022
6.0.3 3,834,957 3/8/2022
6.0.2 4,558,601 2/8/2022
6.0.1 5,238,072 12/14/2021
6.0.0 6,365,797 11/8/2021
6.0.0-rc.2.21480.5 84,044 10/12/2021
6.0.0-rc.1.21452.10 22,975 9/14/2021
6.0.0-preview.7.21378.4 12,845 8/10/2021
6.0.0-preview.6.21352.1 6,257 7/14/2021
6.0.0-preview.5.21301.9 18,222 6/15/2021
6.0.0-preview.4.21253.1 12,066 5/24/2021
6.0.0-preview.3.21201.2 11,796 4/8/2021
6.0.0-preview.2.21154.2 6,076 3/11/2021
6.0.0-preview.1.21102.2 10,795 2/12/2021
5.0.17 1,673,194 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 194,732 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 379,364 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 480,424 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 833,273 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 862,414 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,673,238 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,804,342 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 2,069,995 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 2,197,461 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,916,463 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,646,646 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 2,188,448 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,335,483 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,427,410 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 1,596,118 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,608,072 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 2,682,223 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 32,899 10/13/2020
5.0.0-rc.1.20451.13 23,552 9/14/2020
5.0.0-preview.8.20407.4 14,278 8/25/2020
5.0.0-preview.7.20365.15 13,375 7/21/2020
5.0.0-preview.6.20312.4 17,338 6/25/2020
5.0.0-preview.5.20278.2 7,830 6/10/2020
5.0.0-preview.4.20220.10 17,819 5/18/2020
5.0.0-preview.3.20181.2 15,965 4/23/2020
5.0.0-preview.2.20159.4 13,911 4/2/2020
5.0.0-preview.2.20120.8 7,541 3/16/2020
3.1.32 1,041,733 12/13/2022
3.1.31 113,660 11/8/2022
3.1.30 149,739 10/11/2022
3.1.29 110,252 9/13/2022
3.1.28 164,620 8/9/2022
3.1.27 315,123 7/12/2022
3.1.26 132,251 6/14/2022
3.1.25 242,400 5/10/2022
3.1.24 157,978 4/11/2022
3.1.23 195,167 3/8/2022
3.1.22 727,287 12/14/2021
3.1.21 459,890 11/7/2021
3.1.20 290,638 10/11/2021
3.1.19 451,796 9/14/2021
3.1.18 663,898 8/10/2021
3.1.17 657,224 7/13/2021
3.1.16 532,860 6/8/2021
3.1.15 689,390 5/11/2021
3.1.14 719,041 4/6/2021
3.1.13 639,364 3/9/2021
3.1.12 771,467 2/9/2021
3.1.11 1,020,457 1/12/2021
3.1.10 1,584,866 11/9/2020
3.1.9 2,201,024 10/13/2020
3.1.8 2,651,305 9/8/2020
3.1.7 1,880,257 8/11/2020
3.1.6 1,689,235 7/14/2020
3.1.5 2,413,480 6/9/2020
3.1.4 2,155,580 5/12/2020
3.1.3 5,731,544 3/24/2020
3.1.2 2,173,060 2/19/2020
3.1.1 2,248,519 1/14/2020
3.1.0 2,559,864 12/3/2019
3.1.0-preview3.19554.8 11,403 11/13/2019
3.1.0-preview2.19525.5 4,583 11/1/2019
3.1.0-preview1.19506.2 7,932 10/15/2019
3.0.3 45,279 2/19/2020
3.0.2 20,986 1/14/2020
3.0.1 264,327 11/18/2019
3.0.0 1,580,861 9/23/2019
3.0.0-rc1.19456.14 6,310 9/16/2019
3.0.0-preview9.19423.6 9,452 9/4/2019
3.0.0-preview8.19405.11 16,299 8/13/2019
3.0.0-preview7.19362.6 5,657 7/23/2019
3.0.0-preview6.19304.10 6,376 6/12/2019
3.0.0-preview5.19227.1 420,255 5/6/2019
3.0.0-preview4.19216.3 4,549 4/18/2019
3.0.0-preview3.19153.1 13,996 3/6/2019
3.0.0-preview.19074.3 5,227 1/29/2019
3.0.0-preview.18572.1 7,949 12/3/2018
2.3.0 3,873 1/14/2025
2.2.6 10,660,480 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,663,830 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,681,785 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 1,773,267 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,792,182 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 11,126,283 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 89,736 10/17/2018
2.2.0-preview2-35157 20,977 9/12/2018
2.2.0-preview1-35029 7,056 8/22/2018
2.1.14 1,818,557 11/18/2019
2.1.11 1,803,951 5/14/2019
2.1.8 1,886,727 2/12/2019
2.1.4 5,783,821 10/1/2018
2.1.3 2,895,878 9/11/2018
2.1.2 2,224,892 8/21/2018
2.1.1 12,788,968 6/18/2018
2.1.0 3,960,849 5/29/2018
2.1.0-rc1-final 28,262 5/6/2018
2.1.0-preview2-final 27,509 4/10/2018
2.1.0-preview1-final 52,943 2/26/2018
2.0.3 3,928,115 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,724,104 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,832,049 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,991,256 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 58,232 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 27,692 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 53,006 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 107,561 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 10,907 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 40,687 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 493,996 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 411,998 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 332,195 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 7,865 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 11,492 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 6,883 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 10,374 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 118,827 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 13,478 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 54,455 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 259,684 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 10,058 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.