示例#1
0
        public void Visit(BooleanRangeExpression expression)
        {
            string op;

            switch (expression.RangeType)
            {
            case RangeOperatorType.All:
                op = " ALL"; break;

            case RangeOperatorType.Any:
                op = " ANY"; break;

            case RangeOperatorType.Some:
                op = " SOME"; break;

            default:
                throw new NotSupportedException();
            }

            Visit(expression.Left);
            Write(op);
            Write(GetBooleanOperator(expression.Type));
            Write("(");
            WriteLine();
            using (Indent(2))
                Visit(expression.Subquery);
            WriteLine();
            Write(")");
        }
示例#2
0
 public void Visit(BooleanRangeExpression booleanRangeExpression)
 {
     if (_innerVisitor != null)
     {
         booleanRangeExpression.Accept(_innerVisitor);
     }
     booleanRangeExpression.Left.Accept(this);
     booleanRangeExpression.Subquery.Accept(this);
 }
示例#3
0
 public void Visit(BooleanRangeExpression booleanRangeExpression)
 {
 }