Exemplo n.º 1
0
 protected internal override Expression VisitLike(LikeExpression like)
 {
     Visit(like.Expression);
     sb.Append(" LIKE ");
     Visit(like.Pattern);
     return(like);
 }
Exemplo n.º 2
0
        protected internal virtual Expression VisitLike(LikeExpression like)
        {
            Expression exp     = Visit(like.Expression);
            Expression pattern = Visit(like.Pattern);

            if (exp != like.Expression || pattern != like.Pattern)
            {
                return(new LikeExpression(exp, pattern));
            }
            return(like);
        }
Exemplo n.º 3
0
 protected virtual bool CompareLike(LikeExpression a, LikeExpression b)
 {
     return(Compare(a.Expression, b.Expression) &&
            Compare(a.Pattern, b.Pattern));
 }