Пример #1
0
 public static ITable Where(this ITable table, Func<IDataRecord, bool> criteria)
 {
   var queryable = table as IQueryableTable;
   if (queryable == null) queryable = new QueryableTable(table);
   queryable.AddRowFilter(criteria);
   return queryable;
 }
Пример #2
0
 public static ITable SelectColumns(this ITable table, Func<IColumnMetadata, bool> criteria)
 {
   var queryable = table as IQueryableTable;
   if (queryable == null) queryable = new QueryableTable(table);
   queryable.AddColumnFilter(criteria);
   return queryable;
 }