Created Issue: We should have NonAction methods show up in the mapping table...
Today, if I have a public class like the following, the GetEntityByKey will show up in the mappings. [Theory][InlineData("GetKey", "GET")][InlineData("GetEntityByKey",...
View ArticleEdited Issue: Make EntitySetController easier to unit test [686]
Should we make the protected virtual methods public and marked with [NonAction]?After investigating this, making those methods public will make it show up in the following lookup table even though...
View ArticleEdited Issue: Make EntitySetController easier to unit test [686]
Should we make the protected virtual methods public and marked with [NonAction]?
View ArticleNew Post: Web API, OData and layered architecture
Our application architecture contains the following layers:Presentation Layer Service Layer Business Layer Data Layer The Service layer uses WebAPI to expose RESTful services. Â When retrieving data we...
View ArticleNew Post: Unit testing EntitySetController.Post
Daniel,The stack trace at the point of the exception is: -Â Â at System.Uri..ctor(String uriString)Â Â at System.Web.Http.OData.EntitySetController`2.Post(TEntity entity)Â Â at...
View ArticleCreated Issue: Help Pages - Display nice error message if...
If the provider is pointed at a file that doesn't exist, we get an unhandled exception that bubbles up as a YSOD (for a local request).Could we catch this unhandled exception and generate a simple...
View ArticleNew Post: Web API, OData and layered architecture
We provide support for parsing the OData query, converting it to a LINQ expression and applying it to an IQueryable. If your business layer does not expose access to your data as an IQueryable, then...
View ArticleNew Post: Unit testing EntitySetController.Post
The relevant code is here (for the RC): http://aspnetwebstack.codeplex.com/SourceControl/changeset/view/f079d76e57b5#src/System.Web.Http.OData/OData/EntitySetController.cs response.Headers.Location =...
View ArticleCommented Issue: We should have NonAction methods show up in the mapping...
Today, if I have a public class like the following, the GetEntityByKey will show up in the mappings. [Theory][InlineData("GetKey", "GET")][InlineData("GetEntityByKey",...
View ArticleSource code checked in, #8a73abeda398
[OData] Routing conventions should not handle requests if action does not exist
View ArticleEdited Issue: Routing conventions should not handle requests if action does...
Right now, several actions return an action name even if the action doesn't exist. We should avoid handling the request if the action doesn't exist so other routing conventions can try to handle it.
View ArticleCommented Issue: Routing conventions should not handle requests if action...
Right now, several actions return an action name even if the action doesn't exist. We should avoid handling the request if the action doesn't exist so other routing conventions can try to handle...
View ArticleCreated Issue: DependencyScope is disposed before the HttpControllerTracer [768]
### Facts - I am using AutoFac as IoC container - I enabled tracing with my custom tracer. - During the trace operation, I try to get the `DependencyScope` through request.Properties collection.###...
View ArticleEdited Issue: DependencyScope is disposed before the HttpControllerTracer [768]
### Facts - I am using AutoFac as IoC container - I enabled tracing with my custom tracer. - During the trace operation, I try to get the `DependencyScope` through request.Properties collection.###...
View ArticleReopened Issue: Content-negotiation not done properly for odata actions using...
When calling an action in odata, content negotiation it's not being performed properly.POST http://localhost:26000/EntityWithSimpleProperties(1)/TestAction HTTP/1.1Host: localhost:26000Content-Length:...
View ArticleEdited Issue: Content-negotiation not done properly for odata actions using...
When calling an action in odata, content negotiation it's not being performed properly.POST http://localhost:26000/EntityWithSimpleProperties(1)/TestAction HTTP/1.1Host: localhost:26000Content-Length:...
View ArticleClosed Issue: Content-negotiation not done properly for odata actions using...
When calling an action in odata, content negotiation it's not being performed properly.POST http://localhost:26000/EntityWithSimpleProperties(1)/TestAction HTTP/1.1Host: localhost:26000Content-Length:...
View ArticleEdited Issue: Use entity set name instead of controller name to build link [765]
The only place that uses controller name to build link is at EntitySetControllerHelpers.cs(79). public static HttpResponseMessage PostResponse<TEntity, TKey>(ApiController controller, TEntity...
View ArticleEdited Issue: Consider making the Json light OData formatter the first...
For consistency with WebAPI where Json is registered before Xml
View ArticleCommented Issue: Consider making the Json light OData formatter the first...
For consistency with WebAPI where Json is registered before XmlComments: Fixed: http://aspnetwebstack.codeplex.com/SourceControl/changeset/45a571195394...
View Article