示例#1
0
 protected IsNullExpression UpdateIsNull(IsNullExpression isnull, Expression expression)
 {
     if (expression != isnull.Expression)
     {
         return(new IsNullExpression(expression));
     }
     return(isnull);
 }
示例#2
0
        protected virtual Expression VisitIsNull(IsNullExpression isnull)
        {
            var expr = Visit(isnull.Expression);

            return(UpdateIsNull(isnull, expr));
        }
 protected virtual bool CompareIsNull(IsNullExpression a, IsNullExpression b)
 {
     return(this.Compare(a.Expression, b.Expression));
 }
示例#4
0
 protected override Expression VisitIsNull(IsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     this.Write(" IS NULL");
     return(isnull);
 }
        protected Expression MakeIsNull(Expression expression, bool negate)
        {
            Expression isnull = new IsNullExpression(expression);

            return(negate ? Expression.Not(isnull) : isnull);
        }