How to do it...

  1. First, let's see the rows contained in our Book table in the Cookbook database on SQL Server:
  1. We can see in the OnConfiguring method of CookbookContext that we use SQL Server as the provider:
  1. Let's create an MVC Cookbook controller and a Books view to see all the rows of the Book table:

The Books view should look as follows:

  1. Now we will install the necessary packages to use the new InMemory provider for EF Core. We can ...

Get ASP.NET Core MVC 2.0 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.