public override DbExpression Visit(DbFilterExpression expression) { Check.NotNull(expression, "expression"); DbExpression result = expression; var input = VisitExpressionBindingEnterScope(expression.Input); var predicate = VisitExpression(expression.Predicate); ExitScope(); if (!ReferenceEquals(expression.Input, input) || !ReferenceEquals(expression.Predicate, predicate)) { result = CqtBuilder.Filter(input, predicate); } NotifyIfChanged(expression, result); return(result); }