Inheritance: ComparatorClause
Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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();
            }
        }