Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 22, 2012 10:38 AM by Ravi theja
Feb 24, 2012 06:14 PM|LINK
I am exposing an entity model using ASP.NET MVC 4. I have created a controller that is based on ApiController and I have a method:
public IQueryable<ClaimHeader> GetClaimHeader()
When I call the method from the URL of my browser like:
localhost/MRABusinessClaimWeb/api/Query/ClaimHeader?$filter=Neg eq 'LAM'
It works and results are returned.
However, I want to use the SELECT functionality of the ODATA protocol so I tried:
localhost/MRABusinessClaimWeb/api/Query/ClaimHeader?$filter=Neg eq 'LAM'&$select=Neg
This returns the entire record and does not limit the result set just to the "Neg" field. Is this expected behavior or a bug?
Feb 24, 2012 06:20 PM|LINK
$select is not supported and there doesn't appear to be plans to support $select
See here: http://forums.asp.net/t/1771116.aspx/1?OData+Support
Mar 22, 2012 10:38 AM|LINK
What about count?