Summary

In this chapter, you have seen how to use the Entity Framework and LINQ to bring data into your web applications without dealing directly with SQL. We created an example application that performed each of the CRUD operations, allowing a user to see the list of events in the sample database, add new events, and modify and delete existing events. There are alternatives to the Entity Framework, but I like the way that it allows me to work with regular C# objects, and without mixing SQL and C# in the same code files. I also like the close integration with LINQ, which provides a natural way to query for data.

The Entity Framework isn't everyone's preferred approach, but it is one of the major investment areas for Microsoft, and it supports ...

Get Applied ASP.NET 4 in Context 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.