Language

The basics of using Entity Framework 5 to display and edit data in an ASP.NET MVC 4 application.

  1. Creating an Entity Framework Data Model

    By Tom Dykstra|

    This tutorial introduces the Contoso University application that you will build and walks you through creating the sample database.

  2. Implementing Basic CRUD Functionality

    By Tom Dykstra|

    In this tutorial you review and customize the CRUD (create, read, update, delete) code that the ASP.NET MVC scaffolding automatically creates for you in controllers and views.

  3. Sorting, Filtering, and Paging

    By Tom Dykstra|

    In this tutorial you add sorting, filtering, and paging functionality to the Students Index page, and you create a page that does simple grouping.

  4. Creating a More Complex Data Model

    By Tom Dykstra|

    In this tutorial you add more entities and relationships and make use of data annotation attributes to control the behavior of the model classes.

  5. Reading Related Data

    By Tom Dykstra|

    In this tutorial you'll read and display related data — that is, data that the Entity Framework loads into navigation properties.

  6. Updating Related Data

    By Tom Dykstra|

    In this tutorial you learn how to update related data.

  7. Handling Concurrency

    By Tom Dykstra|

    This tutorial shows how to handle concurrency.

  8. Implementing Inheritance

    By Tom Dykstra|

    This tutorial will show you how to implement inheritance in the data model.

  9. Implementing the Repository and Unit of Work Patterns

    By Tom Dykstra|

    In this tutorial you'll see some ways to use the repository and unit of work patterns for CRUD operations.

  10. Advanced Entity Framework Scenarios

    By Tom Dykstra|

    This tutorial discusses a variety of topics, including how to work more directly with SQL queries, work with proxy classes, and disable validation during save operations.

  11. Building the EF5 MVC4 Chapter Downloads

    By Rick Anderson|

    The Contoso University sample web application demonstrates how to create ASP.NET MVC 4 applications using the Entity Framework 5 Code First and Visual Studio 2012. For information about the tutoria...

ASP.NET MVC Books

Microsoft's Jon Galloway recommends these books for learning ASP.NET MVC:

Pro ASP.NET MVC 4

Pro ASP.NET MVC 4

by Adam Freeman

Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen