ASP.NET Core MVC with EF Core - tutorial series

This tutorial has not been updated to ASP.NET Core 3.0. The Razor Pages version has been updated. For information on when this might be updated, see this GitHub issue.

This tutorial teaches ASP.NET Core MVC and Entity Framework Core with controllers and views. Razor Pages is an alternative programming model that was introduced in ASP.NET Core 2.0. For new development, we recommend Razor Pages over MVC with controllers and views. There is a Razor Pages version of this tutorial. Each tutorial covers some material the other doesn't:

Some things this MVC tutorial has that the Razor Pages tutorial doesn't:

  • Implement inheritance in the data model
  • Perform raw SQL queries
  • Use dynamic LINQ to simplify code

Some things the Razor Pages tutorial has that this one doesn't:

  • Use Select method to load related data
  • A version available for ASP.NET Core 3.0
  1. Get started
  2. Create, Read, Update, and Delete operations
  3. Sorting, filtering, paging, and grouping
  4. Migrations
  5. Create a complex data model
  6. Reading related data
  7. Updating related data
  8. Handle concurrency conflicts
  9. Inheritance
  10. Advanced topics