예제 #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)
 {
 }