public override void VisitWhereClause(WhereClause whereClause, QueryModel queryModel, int index)
        {
            // the predicate here is not a lambda; it is just the body of the Where() lambda
            var oDataFilterExpression = _filterExpressionTranslator.Translate(whereClause.Predicate);

            _query.FilterPredicate = ODataQueryPart.Filter(oDataFilterExpression);

            base.VisitWhereClause(whereClause, queryModel, index);
        }
 private string BuildTranslatedExpression <TReturn>(Expression <Func <TestModel, TReturn> > expression)
 {
     return(_visitor.Translate(expression.Body).ToString());
 }