LINQ Programming

LINQ programming was introduced in Chapter 6. That chapter primarily focused on LINQ to Objects, which is the default provider. The next chapter introduces three additional providers: LINQ to XML, LINQ to SQL and LINQ to DataSet. These providers implement the IQueryable interface to implement their unique behavior and extend the IEnumerable<T> interface.

You can manage, query, and change an XML store using LINQ to XML. Discard the competing models (DOM, XmlTextReader, and so forth) for accessing XML. LINQ to XML provides a unified model for querying and managing XML documents and elements. LINQ to SQL is for managing and querying relational databases. LINQ to SQL also provides a straightforward method for making changes in a disconnected ...

Get Programming Microsoft® Visual C#® 2008: The Language 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.