Inheritance: ComparatorClause
コード例 #1
0
ファイル: QupidQuery.cs プロジェクト: hudl/qupid
 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;
 }
コード例 #2
0
ファイル: QueryAnalyzer.cs プロジェクト: hudl/qupid
        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();
            }
        }