Caution

This documentation is for EF Core. For EF6.x and earlier release see http://msdn.com/data/ef.

InMemory (for Testing)

This database provider allows Entity Framework Core to be used with an in-memory database. This is useful when testing code that uses Entity Framework Core. The provider is maintained as part of the EntityFramework GitHub project.

In this article:

Install

Install the Microsoft.EntityFrameworkCore.InMemory NuGet package.

PM>  Install-Package Microsoft.EntityFrameworkCore.InMemory

Get Started

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

Supported Database Engines

  • Built-in in-memory database (designed for testing purposes only)

Supported Platforms

  • Full .NET (4.5.1 onwards)
  • .NET Core
  • Mono (4.2.0 onwards)
  • Universal Windows Platform