Created
July 28, 2017 15:58
-
-
Save nbarbettini/649fdcf3c6659420b9d1591b399ad33a to your computer and use it in GitHub Desktop.
Configure EF Core InMemory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddDbContext<ApiDbContext>(options => | |
{ | |
// Use an in-memory database with a randomized database name (for testing) | |
options.UseInMemoryDatabase(Guid.NewGuid().ToString()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment