EF Core In-Memory Database Provider

This database provider allows Entity Framework Core to be used with an in-memory database. While some users use the in-memory database for testing, this is generally discouraged; the SQLite provider in in-memory mode is a more appropriate test replacement for relational databases. For more information on how to test EF Core applications, see the testing documentation. The provider is maintained as part of the Entity Framework Core Project.


The In-Memory provider was not designed for use outside of testing environments and should never be used as such.


Install the Microsoft.EntityFrameworkCore.InMemory NuGet package.

dotnet add package Microsoft.EntityFrameworkCore.InMemory

Get Started

The following resources will help you get started with this provider.

Supported Database Engines

In-process memory database, designed for testing purposes only.