Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 689 Bytes
title author ms.date ms.assetid uid
Test components using Entity Framework - EF Core
rowanmiller
10/27/2016
1603be0c-69bc-4dd9-9a08-3d0129cdc6c1
core/miscellaneous/testing/index

Testing

You may want to test components using something that approximates connecting to the real database, without the overhead of actual database I/O operations.

There are two main options for doing this:

  • SQLite in-memory mode allows you to write efficient tests against a provider that behaves like a relational database.
  • The InMemory provider is a lightweight provider that has minimal dependencies, but does not always behave like a relational database.