ערוך

שתף באמצעות


TypedTableBaseExtensions Class

Definition

Contains the extension methods for the TypedTableBase<T> class.

public ref class TypedTableBaseExtensions abstract sealed
public static class TypedTableBaseExtensions
type TypedTableBaseExtensions = class
Public Module TypedTableBaseExtensions
Inheritance
TypedTableBaseExtensions

Remarks

The class contains static extension methods that define the AsEnumerable method and standard query operations for typed data sets.

This class cannot be instantiated.

Methods

AsEnumerable<TRow>(TypedTableBase<TRow>)

Enumerates the data row elements of the TypedTableBase<T> and returns an EnumerableRowCollection<TRow> object, where the generic parameter T is DataRow. This object can be used in a LINQ expression or method query.

ElementAtOrDefault<TRow>(TypedTableBase<TRow>, Int32)

Returns the element at a specified row in a sequence or a default value if the row is out of range.

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

Sorts the rows of a TypedTableBase<T> in ascending order according to the specified key.

OrderBy<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Sorts the rows of a TypedTableBase<T> in ascending order according to the specified key and comparer.

OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>)

Sorts the rows of a TypedTableBase<T> in descending order according to the specified key.

OrderByDescending<TRow,TKey>(TypedTableBase<TRow>, Func<TRow,TKey>, IComparer<TKey>)

Sorts the rows of a TypedTableBase<T> in descending order according to the specified key and comparer.

Select<TRow,S>(TypedTableBase<TRow>, Func<TRow,S>)

Projects each element of a TypedTableBase<T> into a new form.

Where<TRow>(TypedTableBase<TRow>, Func<TRow,Boolean>)

Filters a sequence of rows based on the specified predicate.

Applies to

See also