Query Expression Examples (LINQ to DataSet)
This section provides LINQ to DataSet programming examples in query expression syntax that use the standard query operators. The DataSet used in these examples is populated by using the FillDataSet method, which is specified in Loading Data Into a DataSet. For more information, see Standard Query Operators Overview.
In This Section
Query Expression Syntax Examples: Projection (LINQ to DataSet)
The examples in this topic demonstrate how to use the Select and SelectMany methods to query a DataSet.Query Expression Syntax Examples: Restriction (LINQ to DataSet)
The examples in this topic demonstrate how to use the Where method to query a DataSet.Query Expression Syntax Examples: Partitioning (LINQ to DataSet)
The examples in this topic demonstrate how to use the Skip<TSource> and Take<TSource> methods to query a DataSet and partition the results.Query Expression Syntax Examples: Ordering (LINQ to DataSet)
The examples in this topic demonstrate how to use the OrderBy, OrderByDescending, Reverse<TSource>, and ThenByDescending methods to query a DataSet and order the results.Query Expression Syntax Examples: Element Operators (LINQ to DataSet)
The examples in this topic demonstrate how to use the First and ElementAt<TSource> methods to get DataRow elements from a DataSet.Query Expression Syntax Examples: Aggregate Operators (LINQ to DataSet)
The examples in this topic demonstrate how to use the Average, Count, Max, Min, and Sum methods to query a DataSet and aggregate data.Query Expression Syntax Examples: Join Operators (LINQ to DataSet)
The examples in this topic demonstrate how to use the GroupJoin and Join methods to query a DataSet.
See Also
Concepts
DataSet-Specific Operator Examples (LINQ to DataSet)