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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.