Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Browsing all 7925 articles
Browse latest View live
↧

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 Article


Edited 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 Article


Edited Issue: Make EntitySetController easier to unit test [686]

Should we make the protected virtual methods public and marked with [NonAction]?

View Article

New 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 Article

New 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 Article


Created 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 Article

New 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 Article

New 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 Article


Commented 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 Article


Source code checked in, #8a73abeda398

[OData] Routing conventions should not handle requests if action does not exist

View Article

Edited 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 Article

Commented 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 Article

Created 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 Article


Edited 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 Article

Reopened 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 Article


Edited 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 Article

Closed 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 Article


Edited 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 Article

Edited Issue: Consider making the Json light OData formatter the first...

For consistency with WebAPI where Json is registered before Xml

View Article

Commented 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
Browsing all 7925 articles
Browse latest View live