© Adam Freeman 2018
Adam FreemanPro Entity Framework Core 2 for ASP.NET Core MVChttps://doi.org/10.1007/978-1-4842-3435-8_11

11. Working with Entity Framework Core

Adam Freeman1 
(1)
London, UK
 
In this chapter, I explain how Entity Framework Core is applied to an ASP.NET Core MVC project, starting with the addition of NuGet packages and working through the creation of a basic data model, a database schema, and the infrastructure to use it. The project created in this chapter sets the foundation for those that follow, which add Entity Framework Core features. Table 11-1 summarizes the chapter.
Table 11-1.

Chapter Summary

Problem

Solution

Listing

Enable the EF Core command-line tools

Add an entry to the .csproj file using a DotNetCliToolReference element

Get Pro Entity Framework Core 2 for ASP.NET Core MVC 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.