Chapter 17. Introducing LINQ

After completing this chapter, you will be able to:

  • Understand the purpose of LINQ in your applications

  • Identify the different LINQ providers

  • Craft typical LINQ queries using ordinary .NET objects

SQL has proved to be a popular language for retrieving and manipulating data. It is found in most major database systems, and even data libraries that aren’t necessarily tied to a database—including the Entity Framework (EF)—use variants of SQL to access tabular or similarly shaped data.

Given its consistency in the programming industry, it comes as no surprise that Microsoft would endow both Visual Basic and C# with a SQL-like syntax for data retrieval purposes. LINQ, introduced into Visual Studio with its 2008 release (and the ...

Get Microsoft® ADO.NET 4 Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.