Entity Framework

Entity Framework Core In Memory Testing

29 September 2016 Entity Framework Last Updated: 13 January 2023

When writing tests, you don’t always want to use a physical database, instead opting for an in-memory solution. Whatever your reasons for doing this, with the release of Entity Framework Core, you now have a couple of different options recommended by the EF team when testing using in-memory databases.

Your two choices for in-memory database providers depend on whether or not you’re using the Microsoft.EntityFrameworkCore.Relational package and if you need the full behavior of a relational database during testing.

Continue reading...