TypedTableBaseExtensions 類別

定義

包含 TypedTableBase<T> 類別的擴充方法。

public ref class TypedTableBaseExtensions abstract sealed
public static class TypedTableBaseExtensions
type TypedTableBaseExtensions = class
Public Module TypedTableBaseExtensions
繼承
TypedTableBaseExtensions

備註

類別包含靜態擴充方法,可定義 AsEnumerable 具型別數據集的方法和標準查詢作業。

無法執行個體化這個類別。

方法

AsEnumerable<TRow>(TypedTableBase<TRow>)

列舉 TypedTableBase<T> 的資料列項目並傳回 EnumerableRowCollection<TRow> 物件,其中泛型參數 TDataRow。 此物件可用於 LINQ 運算式或方法查詢。

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

傳回位於序列中指定的資料列的項目;如果資料列超出範圍,則傳回預設值。

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

依據指定的索引鍵,按遞增順序排序 TypedTableBase<T> 的資料列。

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

依據指定的索引鍵和比較子,按遞增順序排序 TypedTableBase<T> 的資料列。

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

依據指定的索引鍵,按遞減順序排序 TypedTableBase<T> 的資料列。

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

依據指定的索引鍵和比較子,按遞減順序排序 TypedTableBase<T> 的資料列。

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

TypedTableBase<T> 的各個項目投影成一個新的表單。

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

根據指定的述詞來篩選資料列序列。

適用於

另請參閱