Exemplo n.º 1
0
        protected DbIsNullExpression UpdateIsNull(DbIsNullExpression isnull,
                                                  Expression expression)
        {
            if (expression != isnull.Expression)
            {
                return(new DbIsNullExpression(expression));
            }

            return(isnull);
        }
 protected DbIsNullExpression UpdateIsNull(DbIsNullExpression isnull, 
     Expression expression)
 {
     if (expression != isnull.Expression)
         return new DbIsNullExpression(expression);
     
     return isnull;
 }
 protected virtual Expression VisitIsNull(DbIsNullExpression isnull)
 {
     Expression expr = Visit(isnull.Expression);
     return UpdateIsNull(isnull, expr);
 }
 protected virtual bool CompareIsNull(DbIsNullExpression a, DbIsNullExpression b)
 {
     return(Compare(a.Expression, b.Expression));
 }
Exemplo n.º 5
0
 protected override Expression VisitIsNull(DbIsNullExpression isnull)
 {
     this.VisitValue(isnull.Expression);
     this.Write(" IS NULL");
     return isnull;
 }
 protected virtual bool CompareIsNull(DbIsNullExpression a, DbIsNullExpression b)
 {
     return Compare(a.Expression, b.Expression);
 }
Exemplo n.º 7
0
        protected virtual Expression VisitIsNull(DbIsNullExpression isnull)
        {
            Expression expr = Visit(isnull.Expression);

            return(UpdateIsNull(isnull, expr));
        }