I am working on a Web API application where we have enabled the queryable support in ASP.NET Web API.
Issue: $skip, $top etc are working but $count & $inlineCount is not working.
My API controller is not derived from ODataController, looks like below
public class UsersSvcController : ApiController
[Queryable]
public IQueryable<VMUser> Get()
{
return userBL.GetAll();
}
}
I came to know that Odata is not supported with Generic type as of now and so $count is also not working.
Is there any way where I can extend QueryableAttribute class and write my own code to get the total records?