Improving MVC applications

Granted, most of us who will be writing applications for .NET Core will be writing web applications. This is not only because there aren't really any other application frameworks for .NET Core–no Windows Forms or WPF–but because web applications seem to have taken over. So, it pays to know how to integrate Entity Framework Core with web apps.

We will be looking at the following:

  • Registering and injecting data contexts into MVC controllers, view components, and views
  • Passing additional configuration to the data context

Getting ready

We will be using the NuGet Package Manager to install the Entity Framework Core 1 package, Microsoft.EntityFrameworkCore. We will also be using a SQL Server database to store the data, so we will ...

Get Entity Framework Core Cookbook - Second Edition 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.