Example #1
0
        public QueryExpression(FromClause from, QueryBody queryBody)
        {
            if (from == null)
                throw new ArgumentNullException("from");

            if (queryBody == null)
                throw new ArgumentNullException("queryBody");

            this.from = from;
            this.queryBody = queryBody;
        }
Example #2
0
 public QueryContinuation(Identifier identifier, QueryBody queryBody)
 {
     this.identifier = identifier;
     this.queryBody = queryBody;
 }
Example #3
0
 public QueryBody Update(QueryBody expression, IEnumerable<QueryBodyClause> clauses, QueryContinuation continuation, SelectOrGroupClause sogc)
 {
     if (expression.Clauses != clauses || expression.Continuation != continuation || expression.SelectOrGroup != sogc)
         return new QueryBody(new ClauseList(clauses), sogc, continuation);
     return expression;
 }
Example #4
0
 public QueryContinuation Update(QueryContinuation expression, Identifier identifier, QueryBody body)
 {
     if (expression.Identifier != identifier || expression.QueryBody != body)
         return new QueryContinuation(identifier, body);
     return expression;
 }
Example #5
0
 public QueryExpression Update(QueryExpression original, FromClause from, QueryBody body)
 {
     if (from != original.From || body != original.QueryBody)
         return new QueryExpression(from, body);
     return original;
 }