I am using MVC 4 web api that comes with visual studio 2012.
As I understand it, odata is not parsed automatically, but we need to add the [Queryable] attribute to the action.
So I added it:
public class TestController : ApiController { [Queryable] public IQueryable<MyClass> GetMyClasses() { return ...; } }
but I get a compilation error:
The type or namespace name 'Queryable' could not be found (are you missing a using directive or an assembly reference?)
Is odata supported? and why the Queryable is not recognized as the attribute specified here.
thanks
c # odata asp.net-mvc asp.net-web-api asp.net-mvc-4
ozba
source share