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))); }
private static List <PoliticianImagesInfo> ConvertTableToList( TypedTableBase <PoliticiansImagesDataRow> table) { var list = table.Select(row => new PoliticianImagesInfo { PoliticianKey = row.PoliticianKey, ProfileOriginalDate = row.ProfileOriginalDate }).ToList(); return(list); }
///<summary>Gets the rows in a typed DataTable that have not been deleted.</summary> public static EnumerableRowCollection <TRow> CurrentRows <TRow>(this TypedTableBase <TRow> table) where TRow : DataRow { return(table.Where(r => r.RowState != DataRowState.Deleted)); }
public static IActiveList <TDataRow> ToActiveList <TDataRow>(this TypedTableBase <TDataRow> table) where TDataRow : DataRow => new DataTableWrapper <TDataRow>(table);