コード例 #1
0
 public static DbValue Max(this RowCollection rowCollection, string column)
 {
     return(rowCollection.AggregateByColumn(column, (max, current) =>
                                            (max == null || DbValueMath.Compare(current, max, Comparison.GreaterThan)) ? current : max));
 }
コード例 #2
0
 public static DbValue Min(this RowCollection rowCollection, string column)
 {
     return(rowCollection.AggregateByColumn(column, (min, current) =>
                                            (min == null || DbValueMath.Compare(current, min, Comparison.LessThan)) ? current : min));
 }
コード例 #3
0
 public static IEnumerable <Row> OrderDescending(this RowCollection rowCollection, string column)
 {
     return(rowCollection.Order(new Order(column, false)));
 }
コード例 #4
0
 public static IEnumerable <Row> Order(this RowCollection rowCollection, params Order[] orders)
 {
     return(rowCollection.Order((IEnumerable <Order>)orders));
 }
コード例 #5
0
 public static IEnumerable <Row> Order(this RowCollection rowCollection, string column)
 {
     return(rowCollection.Order(new Order(column, true)));
 }
コード例 #6
0
 public static IEnumerable <Row> Where(this RowCollection rowCollection, IEnumerable <Condition> conditions)
 {
     return(rowCollection.Where(row => CheckRowForConditions(row, conditions)).ToList());
 }
コード例 #7
0
 public static IEnumerable <Row> Where(this RowCollection rowCollection, params Condition[] conditions)
 {
     return(rowCollection.Where((IEnumerable <Condition>)conditions));
 }
コード例 #8
0
 public static IEnumerable <Row> Where(this RowCollection rowCollection, string column, Comparison comparison, DbValue value)
 {
     return(rowCollection.Where(new Condition(column, comparison, value)));
 }
コード例 #9
0
 public static DbValue Sum(this RowCollection rowCollection, string column)
 {
     return(rowCollection.AggregateByColumn(column, DbValueMath.Sum));
 }