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