Microsoft.EntityFrameworkCore.InMemory 9.0.2

Prefix Reserved

Requires NuGet 3.6 or higher.

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

// Install Microsoft.EntityFrameworkCore.InMemory as a Cake Tool
#tool nuget:?package=Microsoft.EntityFrameworkCore.InMemory&version=9.0.2                

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 net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (599)

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

Reo.Core.Testing

Package Description

GitHub repositories (308)

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

Repository Stars
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
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 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.
Version Downloads Last updated
9.0.2 59,862 2/11/2025
9.0.1 346,456 1/14/2025
9.0.0 1,164,585 11/12/2024
9.0.0-rc.2.24474.1 30,597 10/8/2024
9.0.0-rc.1.24451.1 19,703 9/10/2024
9.0.0-preview.7.24405.3 6,548 8/13/2024
9.0.0-preview.6.24327.4 45,722 7/9/2024
9.0.0-preview.5.24306.3 9,568 6/11/2024
9.0.0-preview.4.24267.1 20,124 5/21/2024
9.0.0-preview.3.24172.4 81,481 4/11/2024
9.0.0-preview.2.24128.4 11,827 3/12/2024
9.0.0-preview.1.24081.2 30,908 2/13/2024
8.0.13 37,582 2/11/2025
8.0.12 221,323 1/14/2025
8.0.11 1,425,922 11/12/2024
8.0.10 2,930,237 10/8/2024
8.0.8 3,973,997 8/13/2024
8.0.7 2,554,409 7/9/2024
8.0.6 3,037,448 5/28/2024
8.0.5 1,076,828 5/14/2024
8.0.4 3,012,658 4/9/2024
8.0.3 2,149,441 3/12/2024
8.0.2 2,668,521 2/13/2024
8.0.1 2,348,080 1/9/2024
8.0.0 5,963,606 11/14/2023
8.0.0-rc.2.23480.1 32,157 10/10/2023
8.0.0-rc.1.23419.6 13,228 9/12/2023
8.0.0-preview.7.23375.4 12,501 8/8/2023
8.0.0-preview.6.23329.4 27,526 7/11/2023
8.0.0-preview.5.23280.1 35,491 6/13/2023
8.0.0-preview.4.23259.3 19,463 5/16/2023
8.0.0-preview.3.23174.2 42,986 4/11/2023
8.0.0-preview.2.23128.3 105,014 3/14/2023
8.0.0-preview.1.23111.4 66,083 2/21/2023
7.0.20 553,959 5/28/2024
7.0.19 77,710 5/14/2024
7.0.18 311,468 4/9/2024
7.0.17 211,965 3/12/2024
7.0.16 350,518 2/13/2024
7.0.15 526,394 1/9/2024
7.0.14 1,084,226 11/14/2023
7.0.13 1,108,832 10/24/2023
7.0.12 1,309,034 10/10/2023
7.0.11 2,182,278 9/12/2023
7.0.10 2,136,996 8/8/2023
7.0.9 2,550,968 7/11/2023
7.0.8 1,018,114 6/22/2023
7.0.7 604,962 6/13/2023
7.0.5 3,909,198 4/11/2023
7.0.4 2,022,586 3/14/2023
7.0.3 2,126,403 2/14/2023
7.0.2 2,321,917 1/10/2023
7.0.1 1,572,544 12/13/2022
7.0.0 2,662,240 11/7/2022
7.0.0-rc.2.22472.11 58,545 10/11/2022
7.0.0-rc.1.22426.7 92,902 9/14/2022
7.0.0-preview.7.22376.2 14,096 8/9/2022
7.0.0-preview.6.22329.4 7,863 7/12/2022
7.0.0-preview.5.22302.2 19,651 6/14/2022
7.0.0-preview.4.22229.2 16,178 5/10/2022
7.0.0-preview.3.22175.1 33,708 4/13/2022
7.0.0-preview.2.22153.1 14,749 3/14/2022
7.0.0-preview.1.22076.6 7,592 2/17/2022
6.0.36 84,056 11/12/2024
6.0.35 100,046 10/8/2024
6.0.33 541,709 8/13/2024
6.0.32 142,010 7/9/2024
6.0.31 249,098 5/28/2024
6.0.30 108,831 5/14/2024
6.0.29 565,519 4/9/2024
6.0.28 283,914 3/12/2024
6.0.27 280,997 2/13/2024
6.0.26 512,395 1/9/2024
6.0.25 707,155 11/14/2023
6.0.24 498,539 10/24/2023
6.0.23 190,984 10/10/2023
6.0.22 556,301 9/12/2023
6.0.21 590,413 8/8/2023
6.0.20 504,373 7/11/2023
6.0.19 404,105 6/22/2023
6.0.18 288,005 6/13/2023
6.0.16 1,606,401 4/11/2023
6.0.15 783,401 3/14/2023
6.0.14 1,042,255 2/14/2023
6.0.13 1,490,575 1/10/2023
6.0.12 1,132,087 12/13/2022
6.0.11 2,164,701 11/7/2022
6.0.10 3,561,451 10/11/2022
6.0.9 3,100,027 9/13/2022
6.0.8 3,764,535 8/9/2022
6.0.7 8,188,172 7/12/2022
6.0.6 2,555,209 6/14/2022
6.0.5 3,318,815 5/10/2022
6.0.4 3,164,990 4/11/2022
6.0.3 3,645,497 3/8/2022
6.0.2 4,245,589 2/8/2022
6.0.1 4,821,840 12/14/2021
6.0.0 5,619,337 11/8/2021
6.0.0-rc.2.21480.5 75,283 10/12/2021
6.0.0-rc.1.21452.10 20,925 9/14/2021
6.0.0-preview.7.21378.4 10,637 8/10/2021
6.0.0-preview.6.21352.1 5,986 7/14/2021
6.0.0-preview.5.21301.9 15,995 6/15/2021
6.0.0-preview.4.21253.1 11,513 5/24/2021
6.0.0-preview.3.21201.2 10,547 4/8/2021
6.0.0-preview.2.21154.2 4,887 3/11/2021
6.0.0-preview.1.21102.2 9,348 2/12/2021
5.0.17 1,440,646 5/10/2022 5.0.17 is deprecated because it is no longer maintained.
5.0.16 185,413 4/11/2022 5.0.16 is deprecated because it is no longer maintained.
5.0.15 362,378 3/8/2022 5.0.15 is deprecated because it is no longer maintained.
5.0.14 467,253 2/8/2022 5.0.14 is deprecated because it is no longer maintained.
5.0.13 771,241 12/14/2021 5.0.13 is deprecated because it is no longer maintained.
5.0.12 817,054 11/7/2021 5.0.12 is deprecated because it is no longer maintained.
5.0.11 1,616,564 10/12/2021 5.0.11 is deprecated because it is no longer maintained.
5.0.10 1,693,827 9/14/2021 5.0.10 is deprecated because it is no longer maintained.
5.0.9 1,959,728 8/10/2021 5.0.9 is deprecated because it is no longer maintained.
5.0.8 1,959,028 7/13/2021 5.0.8 is deprecated because it is no longer maintained.
5.0.7 1,836,985 6/8/2021 5.0.7 is deprecated because it is no longer maintained.
5.0.6 1,579,492 5/11/2021 5.0.6 is deprecated because it is no longer maintained.
5.0.5 2,078,087 4/6/2021 5.0.5 is deprecated because it is no longer maintained.
5.0.4 1,290,173 3/9/2021 5.0.4 is deprecated because it is no longer maintained.
5.0.3 1,385,450 2/9/2021 5.0.3 is deprecated because it is no longer maintained.
5.0.2 1,540,345 1/12/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 3,381,240 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 2,395,468 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.6 32,356 10/13/2020
5.0.0-rc.1.20451.13 23,213 9/14/2020
5.0.0-preview.8.20407.4 13,980 8/25/2020
5.0.0-preview.7.20365.15 12,778 7/21/2020
5.0.0-preview.6.20312.4 17,004 6/25/2020
5.0.0-preview.5.20278.2 7,507 6/10/2020
5.0.0-preview.4.20220.10 17,478 5/18/2020
5.0.0-preview.3.20181.2 15,259 4/23/2020
5.0.0-preview.2.20159.4 12,903 4/2/2020
5.0.0-preview.2.20120.8 7,223 3/16/2020
3.1.32 685,796 12/13/2022
3.1.31 96,052 11/8/2022
3.1.30 112,039 10/11/2022
3.1.29 97,958 9/13/2022
3.1.28 137,720 8/9/2022
3.1.27 225,822 7/12/2022
3.1.26 118,436 6/14/2022
3.1.25 216,053 5/10/2022
3.1.24 148,829 4/11/2022
3.1.23 179,699 3/8/2022
3.1.22 672,977 12/14/2021
3.1.21 427,028 11/7/2021
3.1.20 271,324 10/11/2021
3.1.19 427,152 9/14/2021
3.1.18 643,299 8/10/2021
3.1.17 626,078 7/13/2021
3.1.16 514,151 6/8/2021
3.1.15 633,491 5/11/2021
3.1.14 662,983 4/6/2021
3.1.13 622,474 3/9/2021
3.1.12 755,887 2/9/2021
3.1.11 972,915 1/12/2021
3.1.10 1,541,365 11/9/2020
3.1.9 2,148,035 10/13/2020
3.1.8 2,582,681 9/8/2020
3.1.7 1,770,675 8/11/2020
3.1.6 1,637,444 7/14/2020
3.1.5 2,355,633 6/9/2020
3.1.4 2,089,202 5/12/2020
3.1.3 5,482,100 3/24/2020
3.1.2 2,073,606 2/19/2020
3.1.1 2,196,781 1/14/2020
3.1.0 2,439,334 12/3/2019
3.1.0-preview3.19554.8 10,288 11/13/2019
3.1.0-preview2.19525.5 4,291 11/1/2019
3.1.0-preview1.19506.2 7,638 10/15/2019
3.0.3 43,621 2/19/2020
3.0.2 19,332 1/14/2020
3.0.1 257,519 11/18/2019
3.0.0 1,530,012 9/23/2019
3.0.0-rc1.19456.14 6,020 9/16/2019
3.0.0-preview9.19423.6 9,119 9/4/2019
3.0.0-preview8.19405.11 15,135 8/13/2019
3.0.0-preview7.19362.6 5,306 7/23/2019
3.0.0-preview6.19304.10 6,072 6/12/2019
3.0.0-preview5.19227.1 390,779 5/6/2019
3.0.0-preview4.19216.3 4,233 4/18/2019
3.0.0-preview3.19153.1 13,692 3/6/2019
3.0.0-preview.19074.3 4,937 1/29/2019
3.0.0-preview.18572.1 7,662 12/3/2018
2.3.0 206 1/14/2025
2.2.6 10,255,681 7/9/2019 2.2.6 is deprecated because it is no longer maintained.
2.2.4 5,468,207 4/9/2019 2.2.4 is deprecated because it is no longer maintained.
2.2.3 1,651,708 3/11/2019 2.2.3 is deprecated because it is no longer maintained.
2.2.2 1,724,127 2/12/2019 2.2.2 is deprecated because it is no longer maintained.
2.2.1 2,738,800 1/8/2019 2.2.1 is deprecated because it is no longer maintained.
2.2.0 10,454,593 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 88,596 10/17/2018
2.2.0-preview2-35157 17,517 9/12/2018
2.2.0-preview1-35029 6,552 8/22/2018
2.1.14 1,707,006 11/18/2019
2.1.11 1,774,553 5/14/2019
2.1.8 1,858,511 2/12/2019
2.1.4 5,710,023 10/1/2018
2.1.3 2,832,689 9/11/2018
2.1.2 2,180,393 8/21/2018
2.1.1 11,002,817 6/18/2018
2.1.0 3,857,543 5/29/2018
2.1.0-rc1-final 27,589 5/6/2018
2.1.0-preview2-final 26,121 4/10/2018
2.1.0-preview1-final 48,981 2/26/2018
2.0.3 3,763,598 5/7/2018 2.0.3 is deprecated because it is no longer maintained.
2.0.2 3,589,271 3/13/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 5,561,387 11/14/2017 2.0.1 is deprecated because it is no longer maintained.
2.0.0 6,738,107 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 56,183 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 27,017 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.6 50,093 7/10/2018 1.1.6 is deprecated because it is no longer maintained.
1.1.5 100,141 12/12/2017 1.1.5 is deprecated because it is no longer maintained.
1.1.4 9,117 11/14/2017 1.1.4 is deprecated because it is no longer maintained.
1.1.3 38,841 9/20/2017 1.1.3 is deprecated because it is no longer maintained.
1.1.2 481,417 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 405,422 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 322,553 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 7,226 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.6 9,418 11/14/2017 1.0.6 is deprecated because it is no longer maintained.
1.0.5 5,080 9/20/2017 1.0.5 is deprecated because it is no longer maintained.
1.0.4 8,589 5/9/2017 1.0.4 is deprecated because it is no longer maintained.
1.0.3 113,402 3/6/2017 1.0.3 is deprecated because it is no longer maintained.
1.0.2 11,633 12/12/2016 1.0.2 is deprecated because it is no longer maintained.
1.0.1 52,455 9/13/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 149,958 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 9,321 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.