Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This section provides LINQ to DataSet programming examples in method-based query 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
Method-Based Query Syntax Examples: Projection (LINQ to DataSet)
The examples in this topic demonstrate how to use the Select and SelectMany methods to query a DataSet.Method-Based Query 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.Method-Based Query 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.Method-Based Query Syntax Examples: Set Operators (LINQ to DataSet)
The examples in this topic demonstrate how to use the Distinct, Except, Intersect, and Union operators to perform value-based comparison operations on sets of data rows.Method-Based Query Syntax Examples: Conversion Operators (LINQ to DataSet)
The examples in this topic demonstrate how to use the ToTSource>, ToDictionary, and ToList<TSource> methods to immediately execute a query expression.Method-Based Query 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.Method-Based Query 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.Method-Based Query Syntax Examples: Join (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)