© Adam Freeman 2018

Adam Freeman, Pro Entity Framework Core 2 for ASP.NET Core MVC, https://doi.org/10.1007/978-1-4842-3435-8_5

5. SportsStore: Storing Data

Adam Freeman

(1)London, UK

In this chapter, I demonstrate how to store the data in the SportsStore application in a database. I show you how to add Entity Framework Core to the project, how to prepare the data model, how to create and use a database, and how to adapt the application so that it makes efficient SQL queries. I also describe the problems that you are most likely to encounter when adding Entity Framework Core to a project and explain how to solve them.

Preparing for this Chapter

I continue to use the SportsStore project I created in Chapter 4. No changes are required for this chapter. ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC now with O’Reilly online learning.

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