Chapter 24. LINQ and the Entity Framework

Language Integrated Query (LINQ) is a set of language extensions for querying data. LINQ was first introduced in .NET 3.5, where it attracted serious attention. However, developers had differing opinions about LINQ's practical value. Some thought it was little more than a cute frill, while others saw in it the entire future of data coding.

Part of the reason that developers were divided is because LINQ isn't just one feature. At its simplest, LINQ allows developers to search for objects in a collection, which is a neat trick but hardly earth-shattering. The real magic of LINQ is its potential to be used on different data sources, such as XML files and relational databases. After all, if searching and sorting ...

Get Beginning ASP.NET 4 in C# 2010 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.