EF Core In-Memory Database Provider

This database provider allows Entity Framework Core to be used with an in-memory database. The in-memory database can be useful for testing, although the SQLite provider in in-memory mode may be a more appropriate test replacement for relational databases. The in-memory database is designed for testing only. The provider is maintained as part of the Entity Framework Core Project.


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.