In-memory database provider for Entity Framework Core (to be used for testing purposes).
Get Started
| Product | Versions |
|---|---|
| .NET |
README
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.
Downloads by Version
Similar & Alternative Packages
Hand-picked matching NuGet libraries based on tags & ecosystem
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.