コード例 #1
0
 public virtual void VisitQueryBody(IQueryBody value)
 {
     VisitQueryOperation(value.Operation);
     VisitQueryClauseCollection(value.Clauses);
     if (value.Continuation != null)
     {
         VisitQueryContinuation(value.Continuation);
     }
 }
コード例 #2
0
        public virtual void VisitQueryBody(IQueryBody value)
        {
            this.VisitQueryOperation(value.Operation);
            this.VisitQueryClauseCollection(value.Clauses);

            if (value.Continuation != null)
            {
                this.VisitQueryContinuation(value.Continuation);
            }
        }
コード例 #3
0
            private void WriteQueryBody(IQueryBody value, IFormatter formatter)
            {
                // from | where | let | join | orderby
                for (int i = 0; i < value.Clauses.Count; i++)
                {
                    this.WriteQueryClause(value.Clauses[i], formatter);
                    formatter.WriteLine();
                }

                // select | group
                this.WriteQueryOperation(value.Operation, formatter);

                // into
                if (value.Continuation != null)
                {
                    formatter.Write(" ");
                    this.WriteQueryContinuation(value.Continuation, formatter);
                }
            }
コード例 #4
0
        public virtual IQueryBody TransformQueryBody(IQueryBody value)
        {
            value.Operation = this.TransformQueryOperation(value.Operation);

            this.InsituTransformQueryClauseCollection(value.Clauses);

            if (value.Continuation != null)
            {
                value.Continuation = this.TransformQueryContinuation(value.Continuation);
            }

            return value;
        }