I am trying to implement OData in WebApi. I am using the repository pattern and EF5 (in the backend) which is still consistent with all the examples I have found. Here is
If the Queryable you return is via a dbContext.dbSet.Select(x => new Model { Id = x.Id}) mechanism instead of AutoMapper. Then applying conditions on the Queryable can be translated and evaluated by the EF LINQ provider automatically. Otherwise, you're going to have to write a custom LINQ provider which changes the expressions from being expressions based off of Model properties to expressions off of EF_Class properties.