public QupidQuery(PropertyList pl, string collection, List<WhereClause> where, UnwindClause unwind, GroupByClause groupBy, HavingClause have, WithClause with) { CollectionName = collection; SelectProperties = pl; WhereClauses = where; UnwindClause = unwind; GroupByClause = groupBy; HavingClause = have; WithClause = with; }
private void AnalyzeHavingClause(QupidCollection collection, HavingClause having) { if (having != null) { var prop = having.Property; if (!prop.Collection.Equals(collection.Name, StringComparison.OrdinalIgnoreCase)) { Fail("The 'having' property (" + prop.Path + ") is invalid."); return; } having.AnalyzedValue = having.LiteralValue.ToString(); } }