Chapter 4. Getting familiar with LINQ to Objects

This chapter covers:

  • The LinqBooks running example
  • Querying collections
  • Using LINQ with ASP.NET and Windows Forms
  • Major standard query operators

In chapter 1 we introduced LINQ, and in chapters 2 and 3 we described new language features and LINQ concepts. We’ll now sample each LINQ flavor in turn. This part focuses on LINQ to Objects. We’ll cover LINQ to SQL in part 3, and LINQ to XML in part 4.

The code samples you’ll encounter in the rest of this book are based on a running example: a book cataloging system. This chapter starts with a description of this example application, its database schema, and its object model.

We’ll use this sample application immediately as a base for discovering ...

Get LINQ in Action now with O’Reilly online learning.

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