예제 #1
0
 public Query(QueryJson json, Schema schema)
 {
     Select       = schema.Load(json.Select);
     Aggregations = Aggregation.Load(json.Aggregations, schema);
     Filters      = Filter.Load(json.Filters, schema);
     OrderBy      = Ordering.Load(json.OrderBy, schema);
     Totals       = json.Totals;
     Skip         = json.Skip;
     Take         = json.Take;
 }
예제 #2
0
 public Aggregation(AggregationJson json, Schema schema)
 {
     Function = json.Function;
     Column   = schema.GetColumn(json.Column);
     Filters  = Filter.Load(json.Filters, schema);
 }