Microsoft.EntityFrameworkCore.InMemory (10.0.11)

Published 2026-09-09 02:35:49 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 10.0.11 Microsoft.EntityFrameworkCore.InMemory

About this package

In-memory database provider for Entity Framework Core (to be used for testing purposes).

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.

Dependencies

ID Version Target Framework
Microsoft.EntityFrameworkCore 10.0.11 net10.0
Microsoft.Extensions.Caching.Memory 10.0.11 net10.0
Microsoft.Extensions.Logging 10.0.11 net10.0
Details
NuGet
2026-09-09 02:35:49 +03:30
0
Microsoft
150 KiB
Assets (2)
Versions (1) View all
10.0.11 2026-09-09