Rediger

Del via


ASP.NET Core MVC with EF Core - tutorial series

This tutorial has not been updated to ASP.NET Core 3.0. It has been updated for ASP.NET Core 5.0.

This tutorial teaches ASP.NET Core MVC and Entity Framework Core with controllers and views. Razor Pages is an alternative programming model. For new development, we recommend Razor Pages over MVC with controllers and views. See the 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
  • Best practices for EF.
  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