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>, IComparer<TKey>)

根据指定的键和比较器按升序对行 TypedTableBase<T> 进行排序。

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

根据指定的键按升序对行 TypedTableBase<T> 进行排序。

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

根据指定的键和比较器按降序对行 TypedTableBase<T> 进行排序。

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

根据指定的键按降序对行 TypedTableBase<T> 进行排序。

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

将每个 TypedTableBase<T> 元素投影到一个新窗体中。

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

根据指定的谓词筛选行序列。

适用于

另请参阅