public virtual Expression VisitIsNullExpression(IsNullExpression isNullExpression)
        {
            Check.NotNull(isNullExpression, "isNullExpression");

            VisitExpression(isNullExpression.Operand);

            _sql.Append(" IS NULL");

            return(isNullExpression);
        }
        public virtual Expression VisitIsNotNull([NotNull] IsNullExpression isNotNullExpression)
        {
            Check.NotNull(isNotNullExpression, nameof(isNotNullExpression));

            Visit(isNotNullExpression.Operand);

            _sql.Append(" IS NOT NULL");

            return(isNotNullExpression);
        }
        public virtual Expression VisitIsNotNull([NotNull] IsNullExpression isNotNullExpression)
        {
            Check.NotNull(isNotNullExpression, nameof(isNotNullExpression));

            Visit(isNotNullExpression.Operand);

            _relationalCommandBuilder.Append(" IS NOT NULL");

            return(isNotNullExpression);
        }
    protected internal virtual Expression VisitIsNull(IsNullExpression isNull)
    {
        var newExpr = Visit(isNull.Expression);

        if (newExpr != isNull.Expression)
        {
            return(new IsNullExpression(newExpr));
        }
        return(isNull);
    }
        /// <summary>
        /// 访问IsNull表达式。
        /// </summary>
        /// <param name="isNullExpression">表达式实例。</param>
        /// <returns>返回访问后的表达式实例对象。</returns>
        public virtual Expression VisitIsNull(IsNullExpression isNullExpression)
        {
            Check.NotNull(isNullExpression, nameof(isNullExpression));

            Visit(isNullExpression.Operand);

            _builder.Append(" IS NULL");

            return(isNullExpression);
        }
Example #6
0
 public override ISqlElement VisitIsNullExpression(IsNullExpression expression)
 {
     Visit(expression.Argument);
     builder.Append(" is ");
     if (expression.IsNotNull)
     {
         builder.Append("not ");
     }
     builder.Append("null");
     return(expression);
 }
Example #7
0
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     if (isnull.IsNot)
     {
         sb.Append(" IS NOT NULL");
     }
     else
     {
         sb.Append(" IS NULL");
     }
     return(isnull);
 }
Example #8
0
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     if (isnull.Not)
         sb.Append(" IS NOT NULL");
     else
         sb.Append(" IS NULL");
     return isnull;
 }
Example #9
0
 public virtual ISqlElement VisitIsNullExpression(IsNullExpression expression)
 {
     expression.Argument = Visit(expression.Argument);
     return(expression);
 }
Example #10
0
 protected virtual bool CompareIsNull(IsNullExpression a, IsNullExpression b)
 {
     return(Compare(a.Expression, b.Expression));
 }
 public override void Visit(IsNullExpression expression)
 {
     _expressionString.Append(" ISNULL(");
     Visit(expression.Property);
     _expressionString.Append(") ");
 }
Example #12
0
 protected virtual Expression VisitIsNull(IsNullExpression isnull)
 {
     var expr = this.Visit(isnull.Expression);
     return this.UpdateIsNull(isnull, expr);
 }
 protected virtual bool CompareIsNull(IsNullExpression a, IsNullExpression b)
 {
     return this.Compare(a.Expression, b.Expression);
 }
Example #14
0
 protected virtual Expression VisitIsNull(IsNullExpression isNull)
 {
     var newExpr = Visit(isNull.Expression);
     if (newExpr != isNull.Expression)
         return new IsNullExpression(newExpr);
     return isNull;
 }
Example #15
0
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     VisitValue(isnull.Expression);
     sb.Append(" IS NULL");
     return isnull;
 }
		private bool CompareIsNull(IsNullExpression a, IsNullExpression b)
		{
			return this.Compare(a.Expression, b.Expression);
		}
Example #17
0
 protected override Expression VisitIsNull(IsNullExpression isNull)
 {
     var newExpr = MakeSqlValue(Visit(isNull.Expression));
     if (newExpr != isNull.Expression)
         return new IsNullExpression(newExpr);
     return isNull;
 }
Example #18
0
 protected Expression MakeIsNull(Expression expression, bool negate)
 {
     Expression isnull = new IsNullExpression(expression);
     return negate ? Expression.Not(isnull) : isnull;
 }
Example #19
0
 /// <summary>
 /// Visits the is null.
 /// </summary>
 /// <param name="isnull">The isnull.</param>
 /// <returns></returns>
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     this.Write(" IS NULL");
     return(isnull);
 }
 protected virtual Expression VisitIsNull(IsNullExpression isnull)
 {
     Expression expr = this.Visit(isnull.Expression);
     if (expr != isnull.Expression)
     {
         return new IsNullExpression(expr);
     }
     return isnull;
 }
Example #21
0
 protected IsNullExpression UpdateIsNull(IsNullExpression isnull, Expression expression)
 {
     if (expression != isnull.Expression)
     {
         return new IsNullExpression(expression);
     }
     return isnull;
 }
Example #22
0
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     this.Write(" IS NULL");
     return isnull;
 }
Example #23
0
 protected override Expression VisitIsNull(IsNullExpression isNull)
 {
     sb.Append("(");
     this.Visit(isNull.Expression);
     sb.Append(") IS NULL");
     return isNull;
 }