コード例 #1
0
 public override void Visit(SqlCoalesceScalarExpression sqlCoalesceScalarExpression)
 {
     this.writer.Write("(");
     sqlCoalesceScalarExpression.LeftExpression.Accept(this);
     this.writer.Write(" ?? ");
     sqlCoalesceScalarExpression.RightExpression.Accept(this);
     this.writer.Write(")");
 }
コード例 #2
0
        public override int Visit(SqlCoalesceScalarExpression sqlCoalesceScalarExpression)
        {
            int hashCode = SqlCoalesceScalarExpressionHashCode;

            hashCode = CombineHashes(hashCode, sqlCoalesceScalarExpression.LeftExpression.Accept(this));
            hashCode = CombineHashes(hashCode, sqlCoalesceScalarExpression.RightExpression.Accept(this));
            return(hashCode);
        }
コード例 #3
0
 public override SqlObject Visit(SqlCoalesceScalarExpression sqlCoalesceScalarExpression)
 {
     return(SqlCoalesceScalarExpression.Create(
                sqlCoalesceScalarExpression.LeftExpression.Accept(this) as SqlScalarExpression,
                sqlCoalesceScalarExpression.RightExpression.Accept(this) as SqlScalarExpression));
 }
 public abstract void Visit(SqlCoalesceScalarExpression scalarExpression);
コード例 #5
0
 protected abstract SqlScalarExpression Visit(SqlCoalesceScalarExpression expression);