コード例 #1
0
        public TranslatedQuery BuildQuery(Expression expression)
        {
            // Each visitor fist the expression
            expression = _visitors.Aggregate(expression, (current, visitor) => visitor.Visit(current));

            return(_translator.Translate(expression));
        }
コード例 #2
0
        public TranslatedQuery BuildQuery(Expression expression)
        {
            foreach (var visitor in _visitors)
            {
                expression = visitor.Visit(expression);
            }

            return(_translator.Translate(expression));
        }