Microsoft.EntityFrameworkCore.InMemory 9.0.11

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.

Showing the top 20 packages that depend on Microsoft.EntityFrameworkCore.InMemory.

Packages Downloads
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
59
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
50
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
49
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
48
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
47
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
46
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
45
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.
45
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
42
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.
42
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
41

Version Downloads Last updated
10.0.0 7 11/13/2025
10.0.0-rc.2.25502.107 7 10/16/2025
10.0.0-rc.1.25451.107 12 9/11/2025
10.0.0-preview.7.25380.108 23 8/14/2025
10.0.0-preview.6.25358.103 20 7/17/2025
10.0.0-preview.5.25277.114 25 6/8/2025
10.0.0-preview.4.25258.110 27 5/15/2025
10.0.0-preview.3.25171.6 31 4/16/2025
10.0.0-preview.2.25163.8 23 3/24/2025
10.0.0-preview.1.25081.1 32 2/26/2025
9.0.11 6 11/13/2025
9.0.10 5 10/16/2025
9.0.9 15 9/11/2025
9.0.8 16 8/7/2025
9.0.7 20 7/11/2025
9.0.6 28 6/12/2025
9.0.5 19 5/17/2025
9.0.4 25 4/16/2025
9.0.3 24 3/14/2025
9.0.2 25 2/21/2025
9.0.1 26 2/21/2025
9.0.0 27 2/22/2025
9.0.0-rc.2.24474.1 22 10/19/2024
9.0.0-rc.1.24451.1 28 9/12/2024
9.0.0-preview.7.24405.3 32 9/3/2024
9.0.0-preview.6.24327.4 37 8/2/2024
9.0.0-preview.5.24306.3 30 7/19/2024
9.0.0-preview.4.24267.1 24 8/8/2024
9.0.0-preview.3.24172.4 33 5/3/2024
9.0.0-preview.2.24128.4 31 4/18/2024
9.0.0-preview.1.24081.2 34 3/7/2024
8.0.22 6 11/13/2025
8.0.21 7 10/16/2025
8.0.20 14 9/11/2025
8.0.19 19 8/7/2025
8.0.18 20 7/11/2025
8.0.17 27 6/12/2025
8.0.16 29 5/17/2025
8.0.15 22 4/16/2025
8.0.14 29 3/14/2025
8.0.13 28 2/19/2025
8.0.12 27 2/19/2025
8.0.11 28 2/19/2025
8.0.10 30 10/8/2024
8.0.8 28 9/21/2024
8.0.7 32 8/5/2024
8.0.6 34 8/8/2024
8.0.5 34 8/9/2024
8.0.4 37 5/3/2024
8.0.3 36 4/16/2024
8.0.2 41 3/7/2024
8.0.1 34 3/7/2024
8.0.0 34 3/7/2024
8.0.0-rc.2.23480.1 35 3/7/2024
8.0.0-rc.1.23419.6 31 3/7/2024
8.0.0-preview.7.23375.4 34 3/7/2024
8.0.0-preview.6.23329.4 35 3/7/2024
8.0.0-preview.5.23280.1 27 7/2/2023
8.0.0-preview.4.23259.3 28 7/2/2023
8.0.0-preview.3.23174.2 32 7/2/2023
8.0.0-preview.2.23128.3 31 7/2/2023
8.0.0-preview.1.23111.4 39 7/2/2023
7.0.20 32 6/30/2024
7.0.19 38 8/4/2024
7.0.18 35 5/3/2024
7.0.17 39 4/13/2024
7.0.16 42 3/7/2024
7.0.15 33 3/7/2024
7.0.14 38 3/7/2024
7.0.13 40 3/7/2024
7.0.12 43 3/7/2024
7.0.11 33 3/7/2024
7.0.10 37 3/7/2024
7.0.9 38 3/7/2024
7.0.8 39 7/2/2023
7.0.7 36 7/2/2023
7.0.5 37 7/2/2023
7.0.4 35 7/2/2023
7.0.3 42 7/2/2023
7.0.2 34 7/2/2023
7.0.1 36 7/2/2023
7.0.0 38 7/2/2023
7.0.0-rc.2.22472.11 32 7/2/2023
7.0.0-rc.1.22426.7 38 7/2/2023
7.0.0-preview.7.22376.2 38 7/2/2023
7.0.0-preview.6.22329.4 28 7/2/2023
7.0.0-preview.5.22302.2 32 7/2/2023
7.0.0-preview.4.22229.2 30 7/2/2023
7.0.0-preview.3.22175.1 32 7/2/2023
7.0.0-preview.2.22153.1 38 7/2/2023
7.0.0-preview.1.22076.6 37 7/2/2023
6.0.36 26 2/19/2025
6.0.35 30 10/8/2024
6.0.33 27 10/28/2024
6.0.32 37 8/9/2024
6.0.31 32 8/4/2024
6.0.30 31 7/29/2024
6.0.29 36 5/3/2024
6.0.28 38 5/21/2024
6.0.27 34 3/7/2024
6.0.26 40 3/7/2024
6.0.25 35 3/7/2024
6.0.24 40 3/7/2024
6.0.23 38 3/7/2024
6.0.22 43 3/7/2024
6.0.21 42 3/7/2024
6.0.20 36 3/7/2024
6.0.19 36 7/2/2023
6.0.18 40 7/2/2023
6.0.16 32 7/2/2023
6.0.15 34 7/2/2023
6.0.14 40 7/2/2023
6.0.13 36 7/2/2023
6.0.12 43 7/2/2023
6.0.11 42 7/2/2023
6.0.10 38 7/2/2023
6.0.9 40 7/2/2023
6.0.8 30 7/2/2023
6.0.7 37 7/2/2023
6.0.6 36 7/2/2023
6.0.5 35 7/2/2023
6.0.4 40 7/2/2023
6.0.3 36 7/2/2023
6.0.2 50 7/2/2023
6.0.1 33 7/2/2023
6.0.0 39 7/2/2023
6.0.0-rc.2.21480.5 31 7/2/2023
6.0.0-rc.1.21452.10 37 7/2/2023
6.0.0-preview.7.21378.4 31 7/2/2023
6.0.0-preview.6.21352.1 32 7/2/2023
6.0.0-preview.5.21301.9 31 7/2/2023
6.0.0-preview.4.21253.1 28 7/2/2023
6.0.0-preview.3.21201.2 33 7/2/2023
6.0.0-preview.2.21154.2 35 7/2/2023
6.0.0-preview.1.21102.2 34 7/2/2023
5.0.17 37 7/2/2023
5.0.16 36 7/2/2023
5.0.15 35 7/2/2023
5.0.14 36 7/2/2023
5.0.13 37 7/2/2023
5.0.12 35 7/2/2023
5.0.11 36 7/2/2023
5.0.10 32 7/2/2023
5.0.9 36 7/2/2023
5.0.8 30 7/2/2023
5.0.7 38 7/2/2023
5.0.6 30 7/2/2023
5.0.5 38 7/2/2023
5.0.4 43 7/2/2023
5.0.3 39 7/2/2023
5.0.2 37 7/2/2023
5.0.1 35 7/2/2023
5.0.0 42 7/2/2023
5.0.0-rc.2.20475.6 37 7/2/2023
5.0.0-rc.1.20451.13 33 7/2/2023
5.0.0-preview.8.20407.4 33 7/2/2023
5.0.0-preview.7.20365.15 30 7/2/2023
5.0.0-preview.6.20312.4 35 7/2/2023
5.0.0-preview.5.20278.2 36 7/2/2023
5.0.0-preview.4.20220.10 38 7/2/2023
5.0.0-preview.3.20181.2 38 7/2/2023
5.0.0-preview.2.20159.4 39 7/2/2023
5.0.0-preview.2.20120.8 31 7/2/2023
3.1.32 32 7/2/2023
3.1.31 39 7/2/2023
3.1.30 39 7/2/2023
3.1.29 40 7/2/2023
3.1.28 37 7/2/2023
3.1.27 39 7/2/2023
3.1.26 37 7/2/2023
3.1.25 43 7/2/2023
3.1.24 34 7/2/2023
3.1.23 33 7/2/2023
3.1.22 41 7/2/2023
3.1.21 39 7/2/2023
3.1.20 34 7/2/2023
3.1.19 45 7/2/2023
3.1.18 39 7/2/2023
3.1.17 35 7/2/2023
3.1.16 45 7/2/2023
3.1.15 38 7/2/2023
3.1.14 38 7/2/2023
3.1.13 33 7/2/2023
3.1.12 44 7/2/2023
3.1.11 35 7/2/2023
3.1.10 39 7/2/2023
3.1.9 33 7/2/2023
3.1.8 37 7/2/2023
3.1.7 35 7/2/2023
3.1.6 37 7/2/2023
3.1.5 37 7/2/2023
3.1.4 46 7/2/2023
3.1.3 39 4/12/2022
3.1.2 34 7/2/2023
3.1.1 36 7/2/2023
3.1.0 43 7/2/2023
3.1.0-preview3.19554.8 34 7/2/2023
3.1.0-preview2.19525.5 30 7/2/2023
3.1.0-preview1.19506.2 28 7/2/2023
3.0.3 37 7/2/2023
3.0.2 34 7/2/2023
3.0.1 34 7/2/2023
3.0.0 36 7/2/2023
3.0.0-rc1.19456.14 29 7/2/2023
3.0.0-preview9.19423.6 33 7/2/2023
3.0.0-preview8.19405.11 32 7/2/2023
3.0.0-preview7.19362.6 34 7/2/2023
3.0.0-preview6.19304.10 33 7/2/2023
3.0.0-preview5.19227.1 30 7/2/2023
3.0.0-preview4.19216.3 31 7/2/2023
3.0.0-preview3.19153.1 34 7/2/2023
3.0.0-preview.19074.3 38 7/2/2023
3.0.0-preview.18572.1 33 7/2/2023
2.3.0 26 2/24/2025
2.2.6 38 7/2/2023
2.2.4 37 7/2/2023
2.2.3 39 7/2/2023
2.2.2 36 7/2/2023
2.2.1 34 7/2/2023
2.2.0 37 7/2/2023
2.2.0-preview3-35497 33 7/2/2023
2.2.0-preview2-35157 36 7/2/2023
2.2.0-preview1-35029 29 7/2/2023
2.1.14 40 7/2/2023
2.1.11 34 7/2/2023
2.1.8 39 7/2/2023
2.1.4 35 7/2/2023
2.1.3 44 7/2/2023
2.1.2 32 7/2/2023
2.1.1 32 7/2/2023
2.1.0 37 7/2/2023
2.1.0-rc1-final 40 7/2/2023
2.1.0-preview2-final 37 7/2/2023
2.1.0-preview1-final 35 7/2/2023
2.0.3 35 7/2/2023
2.0.2 40 7/2/2023
2.0.1 36 7/2/2023
2.0.0 43 7/2/2023
2.0.0-preview2-final 38 7/2/2023
2.0.0-preview1-final 35 7/2/2023
1.1.6 37 7/2/2023
1.1.5 37 7/2/2023
1.1.4 36 7/2/2023
1.1.3 31 7/2/2023
1.1.2 30 7/2/2023
1.1.1 36 7/2/2023
1.1.0 39 7/2/2023
1.1.0-preview1-final 39 7/2/2023
1.0.6 40 7/2/2023
1.0.5 36 7/2/2023
1.0.4 36 7/2/2023
1.0.3 38 7/2/2023
1.0.2 34 7/2/2023
1.0.1 38 7/2/2023
1.0.0 37 7/2/2023
1.0.0-rc2-final 40 7/2/2023