public override void Visit(SqlUnaryScalarExpression sqlUnaryScalarExpression)
 {
     this.writer.Write("(");
     this.writer.Write(SqlObjectTextSerializer.SqlUnaryScalarOperatorKindToString(sqlUnaryScalarExpression.OperatorKind));
     this.writer.Write(" ");
     sqlUnaryScalarExpression.Expression.Accept(this);
     this.writer.Write(")");
 }
예제 #2
0
        public override int Visit(SqlUnaryScalarExpression sqlUnaryScalarExpression)
        {
            int hashCode = SqlUnaryScalarExpressionHashCode;

            hashCode = CombineHashes(hashCode, SqlObjectHasher.SqlUnaryScalarOperatorKindGetHashCode(sqlUnaryScalarExpression.OperatorKind));
            hashCode = CombineHashes(hashCode, sqlUnaryScalarExpression.Expression.Accept(this));
            return(hashCode);
        }
 public override SqlObject Visit(SqlUnaryScalarExpression sqlUnaryScalarExpression)
 {
     return(SqlUnaryScalarExpression.Create(
                sqlUnaryScalarExpression.OperatorKind,
                sqlUnaryScalarExpression.Expression.Accept(this) as SqlScalarExpression));
 }
 public abstract void Visit(SqlUnaryScalarExpression scalarExpression);
 protected abstract SqlScalarExpression Visit(SqlUnaryScalarExpression expression);