public static IList <Ordering> Load(IEnumerable <OrderingJson> orderings, Schema schema) => orderings?.Select(x => new Ordering(x, schema)).ToList() ?? new List <Ordering>();
public Aggregation(AggregationJson json, Schema schema) { Function = json.Function; Column = schema.GetColumn(json.Column); Filters = Filter.Load(json.Filters, schema); }
public Ordering(OrderingJson json, Schema schema) : this(schema.GetColumn(json.Column), json.Descending) { }