Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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)));
 }
Ejemplo n.º 3
0
 public void Where_NullSource_ThrowsArgumentNullException()
 {
     AssertExtensions.Throws <ArgumentNullException>("source", () => TypedTableBaseExtensions.Where <DataRow>(null, row => true));
 }