Summary

In this chapter, I showed you how to use all the IEnumerable operators for set-type operations with DataRow objects and how to get and set field values using the Field<T> and SetField<T> operators. I also showed you what can go wrong if you do not use the DataRow specific set-type operator prototypes. Combining the LINQ to Objects Standard Query Operators with these DataSet-specific operators allows one to create powerful LINQ queries for DataSet objects.

In the next chapter, I wrap up the LINQ to DataSet part of this book by covering how to query typed DataSets with LINQ, as well as provide a real database example of a LINQ to DataSet query.

Get Pro LINQ: Language Integrated Query in C# 2008 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.