Exemplo n.º 1
0
 public override void Print(TextWriter output)
 {
     output.Write("StorePredicate:{");
     base.Print(output);
     output.Write(",Store=");
     if (_store != null)
     {
         _store.Print(output);
     }
     else
     {
         output.Write("null");
     }
     output.Write(",Validator=");
     if (_validator != null)
     {
         _validator.Print(output);
     }
     else
     {
         output.Write("null");
     }
     output.Write("}");
 }
Exemplo n.º 2
0
        public void Print(System.IO.TextWriter output)
        {
            output.Write("QueryCriteria:{");
            output.Write("Projections=[");
            for (int i = 0; i < _projections.Count; i++)
            {
                _projections[i].Print(output);
                if (i != _projections.Count - 1)
                {
                    output.Write(",");
                }
            }
            output.Write("]");
            output.Write(",Aggregations=[");
            if (_aggregations != null)
            {
                for (int i = 0; i < _aggregations.Count; i++)
                {
                    _aggregations[i].Print(output);
                    if (i != _aggregations.Count - 1)
                    {
                        output.Write(",");
                    }
                }
            }
            else
            {
                output.Write("null");
            }
            output.Write("]");

            output.Write(",GroupByField=");
            if (_groupByField != null)
            {
                _groupByField.Print(output);
            }
            else
            {
                output.Write("null");
            }
            output.Write(",OrderByField=");
            if (_orderByField != null)
            {
                _orderByField.Print(output);
            }
            else
            {
                output.Write("null");
            }

            output.Write(",DistinctField=");
            if (_distinctField != null)
            {
                _distinctField.Print(output);
            }
            else
            {
                output.Write("null");
            }

            output.Write(",Store=");
            if (_store != null)
            {
                _store.Print(output);
            }
            else
            {
                output.Write("null");
            }
            output.Write(",SubstituteStore=");
            if (_substituteStore != null)
            {
                _substituteStore.Print(output);
            }
            else
            {
                output.Write("null");
            }

            output.Write(",Update=");
            if (_documentUpdate != null)
            {
                _documentUpdate.Print(output);
            }
            else
            {
                output.Write("null");
            }
            output.Write(",NewDocuemnt=");
            output.Write(newDocument != null ? newDocument.ToString() : "null");
            output.Write(",UpdateOption=" + _updateOption);
            output.Write(",SortResult=" + sortResult);
            output.Write(",QueryID=" + queryId);
            output.Write("}");
        }