Microsoft.EntityFrameworkCore.InMemory 9.0.8

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
51
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
45
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
44
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.
43
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
39
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
38
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
37
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.
37
AspNetCore.HealthChecks.UI.InMemory.Storage
HealthChecks.UI.InMemory.Storage package contains the required classes to use InMemory provider in the UI
36
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.
36

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