Example #1
0
 public override void AcceptChildren(WSqlFragmentVisitor visitor)
 {
     if (FirstQueryExpr != null)
     {
         FirstQueryExpr.Accept(visitor);
     }
     if (SecondQueryExpr != null)
     {
         SecondQueryExpr.Accept(visitor);
     }
     base.AcceptChildren(visitor);
 }
Example #2
0
        internal override string ToString(string indent)
        {
            var sb = new StringBuilder(1024);

            sb.AppendFormat("{0}\r\n", FirstQueryExpr.ToString(indent));

            sb.AppendFormat(All ? "{0}{1} ALL\r\n" : "{0}{1}\r\n", indent,
                            TsqlFragmentToString.BinaryQueryExpressionType(BinaryQueryExprType));

            sb.AppendFormat("{0}", SecondQueryExpr.ToString(indent));

            return(sb.ToString());
        }