public static EnumerableRowCollection <TRow> WhereNotDeleted <TRow>(this TypedTableBase <TRow> source) where TRow : DataRow { return(TypedTableBaseExtensions.Where(source, d => d.RowState != DataRowState.Deleted && d.RowState != DataRowState.Detached)); }
public static EnumerableRowCollection <TRow> WhereX <TRow>(this TypedTableBase <TRow> source, Func <TRow, bool> predicate) where TRow : DataRow { return(TypedTableBaseExtensions.Where(source, d => d.RowState != DataRowState.Deleted && d.RowState != DataRowState.Detached && predicate(d))); }
public void Where_NullSource_ThrowsArgumentNullException() { AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.Where <DataRow>(null, row => true)); }