CHAPTER 24

image

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.

Developers were divided partly 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 ...

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