Aspnetcore.docs: Include Microsoft.EntityFrameworkCore.InMemory on the procedure

Created on 30 Nov 2019  Â·  7Comments  Â·  Source: dotnet/AspNetCore.Docs

Dear blogger builders,

I think you should include the installation of "Microsoft.EntityFrameworkCore.InMemory" in the project. Otherwise, on a fresh VS 2019 installation, the "UseInMemoryDatabase" will be not available. So, add an extra step of the package installation before the step "Update Startup.cs." I could be via "NuGet Package Manager Console" for the sake of simplicity as follows:

Install-Package Microsoft.EntityFrameworkCore.InMemory


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P4 Source - Docs.ms doc-provided

Most helpful comment

it's badly written "preceding instructions" makes no sense, suggest rewording

All 7 comments

It's in the instructions.

Please review again and amend, I followed the project instructions to the letter and double checked and had exactly the problem thiagofborn described ("UseInMemoryDatabase" not available) on a new VS 2019 install. As thiag suggested I ran "Install-Package Microsoft.EntityFrameworkCore.InMemory" from the package manager console which fixed it

image

it's badly written "preceding instructions" makes no sense, suggest rewording

I agree, it's poorly written. I missed this step as well until coming down to leave my own complaint.. Spacing the bulletin 1 line lower/ emboldening the InMemory package in the same style as the SqlServer package would help. (It's a second step, it gets glossed over when it's lumped under the first step)

Our interns also missed this step in the instructions. Please emphasize.

@wadepickett this has been fixed and is unrelated to #19859

Was this page helpful?
0 / 5 - 0 ratings