예제 #1
0
 public override SqlObject Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
 {
     return(SqlBetweenScalarExpression.Create(
                sqlBetweenScalarExpression.Expression.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.StartInclusive.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.EndInclusive.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.Not));
 }
 public override SqlObject Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
 {
     return(SqlBetweenScalarExpression.Create(
                sqlBetweenScalarExpression.Expression.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.LeftExpression.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.RightExpression.Accept(this) as SqlScalarExpression,
                sqlBetweenScalarExpression.IsNot));
 }
예제 #3
0
        public override int Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
        {
            int hashCode = SqlBetweenScalarExpressionHashCode;

            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.Expression.Accept(this));
            if (sqlBetweenScalarExpression.IsNot)
            {
                hashCode = SqlObjectHasher.CombineHashes(hashCode, SqlBetweenScalarExpressionNotHashCode);
            }

            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.LeftExpression.Accept(this));
            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.RightExpression.Accept(this));
            return(hashCode);
        }
        public override int Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
        {
            int hashCode = SqlBetweenScalarExpressionHashCode;

            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.Expression.Accept(this));
            if (sqlBetweenScalarExpression.Not)
            {
                hashCode = SqlObjectHasher.CombineHashes(hashCode, SqlBetweenScalarExpressionNotHashCode);
            }

            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.StartInclusive.Accept(this));
            hashCode = CombineHashes(hashCode, sqlBetweenScalarExpression.EndInclusive.Accept(this));
            return(hashCode);
        }
        public override void Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
        {
            this.writer.Write("(");
            sqlBetweenScalarExpression.Expression.Accept(this);

            if (sqlBetweenScalarExpression.IsNot)
            {
                this.writer.Write(" NOT");
            }

            this.writer.Write(" BETWEEN ");
            sqlBetweenScalarExpression.LeftExpression.Accept(this);
            this.writer.Write(" AND ");
            sqlBetweenScalarExpression.RightExpression.Accept(this);
            this.writer.Write(")");
        }
        public override void Visit(SqlBetweenScalarExpression sqlBetweenScalarExpression)
        {
            this.writer.Write("(");
            sqlBetweenScalarExpression.Expression.Accept(this);

            if (sqlBetweenScalarExpression.Not)
            {
                this.writer.Write(" NOT");
            }

            this.writer.Write(" BETWEEN ");
            sqlBetweenScalarExpression.StartInclusive.Accept(this);
            this.writer.Write(" AND ");
            sqlBetweenScalarExpression.EndInclusive.Accept(this);
            this.writer.Write(")");
        }
 public abstract void Visit(SqlBetweenScalarExpression scalarExpression);