Chapter 12. LINQ beyond collections

 

This chapter covers

  • LINQ to SQL
  • IQueryable and expression tree queries
  • LINQ to XML
  • Parallel LINQ
  • Reactive Extensions for .NET
  • Writing your own operators

Suppose an alien visited you and asked you to describe culture. How could you capture the diversity of human culture in a short space of time? You might decide to spend that time showing him culture rather than describing it in the abstract: a visit to a New Orleans jazz club, opera in La Scala, the Louvre gallery in Paris, a Shakespeare play in Stratford-upon-Avon, and so on.

Would this alien know everything about culture afterward? Could he compose a tune, write a book, dance a ballet, craft a sculpture? Absolutely not. But he’d hopefully leave with a sense of culture—its richness and variety, its ability to light up people’s lives.

So it is with this chapter. You’ve now seen all of the features of C# 3, but without seeing more of LINQ, you don’t have enough context to really appreciate them. When the first edition of this book was published, not many LINQ technologies were available, but now there’s a glut of them, both from Microsoft and from third parties. That in itself hasn’t surprised me, but I’ve been fascinated to see the different natures of these technologies.

12.1. Querying a database with LINQ to SQL

 
 
 

12.2. Translations using IQueryable and IQueryProvider

 
 

12.3. LINQ-friendly APIs and LINQ to XML

 
 
 

12.4. Replacing LINQ to Objects with Parallel LINQ

 
 

12.5. Inverting the query model with LINQ to Rx

 
 
 
 

12.6. Extending LINQ to Objects

 
 

12.7. Summary

 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage