public TranslatedQuery BuildQuery(Expression expression) { // Each visitor fist the expression expression = _visitors.Aggregate(expression, (current, visitor) => visitor.Visit(current)); return(_translator.Translate(expression)); }
public TranslatedQuery BuildQuery(Expression expression) { foreach (var visitor in _visitors) { expression = visitor.Visit(expression); } return(_translator.Translate(expression)); }