12 Saving data with Entity Framework Core

This chapter covers

  • Understanding what Entity Framework Core is and why you should use it
  • Adding Entity Framework Core to an ASP.NET Core application
  • Building a data model and using it to create a database
  • Querying, creating, and updating data with Entity Framework Core

Most applications that you’ll build with ASP.NET Core require storing and loading some kind of data. Even the examples so far in this book have assumed that you have some sort of data store—storing exchange rates, user shopping carts, or the locations of physical stores. I’ve glossed over this topic for the most part, but typically you’ll store this data in a database.

Working with databases can be a rather cumbersome process. You have ...

Get ASP.NET Core in Action, Third 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.