Пример #1
0
 public static IList <Ordering> Load(IEnumerable <OrderingJson> orderings, Schema schema)
 => orderings?.Select(x => new Ordering(x, schema)).ToList()
 ?? new List <Ordering>();
Пример #2
0
 public Aggregation(AggregationJson json, Schema schema)
 {
     Function = json.Function;
     Column   = schema.GetColumn(json.Column);
     Filters  = Filter.Load(json.Filters, schema);
 }
Пример #3
0
 public Ordering(OrderingJson json, Schema schema)
     : this(schema.GetColumn(json.Column), json.Descending)
 {
 }