Visit() protected method

protected Visit ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression
Ejemplo n.º 1
0
		public static List<Expression> FindAll(Expression expression, Predicate<Expression> isMatch)
		{
			var finder = new SqlExpressionFinder(isMatch, false);

			finder.Visit(expression);

			return finder.results;
		}
Ejemplo n.º 2
0
		public static Expression FindFirst(Expression expression, Predicate<Expression> isMatch)
		{
			var finder = new SqlExpressionFinder(isMatch, true);

			finder.Visit(expression);

			return finder.results.FirstOrDefault();
		}
Ejemplo n.º 3
0
		public static bool FindExists(Expression expression, Predicate<Expression> isMatch)
		{
			var finder = new SqlExpressionFinder(isMatch, true);

			finder.Visit(expression);

			return finder.results.Count > 0;
		}
Ejemplo n.º 4
0
        public static List <Expression> FindAll(Expression expression, Predicate <Expression> isMatch)
        {
            var finder = new SqlExpressionFinder(isMatch, false);

            finder.Visit(expression);

            return(finder.results);
        }
Ejemplo n.º 5
0
        public static Expression FindFirst(Expression expression, Predicate <Expression> isMatch)
        {
            var finder = new SqlExpressionFinder(isMatch, true);

            finder.Visit(expression);

            return(finder.results.FirstOrDefault());
        }
Ejemplo n.º 6
0
        public static bool FindExists(Expression expression, Predicate <Expression> isMatch)
        {
            var finder = new SqlExpressionFinder(isMatch, true);

            finder.Visit(expression);

            return(finder.results.Count > 0);
        }