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

New Post: Serialization stuff

I just tried returning all of these types from a Web API built with ASP.NET Web API 2 and Json.NET 4.5.11 they all returned empty JSON objects for me. Daniel Roth

View Article


New Post: CreateEntity returns wrong location header

I believe the key is determined by your implementation of the GetKey method on your EntitySetController. Daniel Roth

View Article


New Post: Custom serialization of .NET type

Hi Please consider the following scenario: Web api receives a requests for some url with either: Accept: application/json or Accept: text/xml The request maps to an action named "GetProduct" which...

View Article

Commented Issue: XmlMediaTypeFormatter does not serialize Uri input correctly...

Uri- file://[7f:d:ee9e::7a:828e:c]/-861%A3+/F3&m/@pM is serialized as file://[7f:d:ee9e::7a:828e:c]/-861%**25**A3+/F3&m/@pM on server by XmlMediaTypeFormatter(Notice 25(bolded) added to the...

View Article

Edited Issue: XmlMediaTypeFormatter does not serialize Uri input correctly...

Uri- file://[7f:d:ee9e::7a:828e:c]/-861%A3+/F3&m/@pM is serialized as file://[7f:d:ee9e::7a:828e:c]/-861%**25**A3+/F3&m/@pM on server by XmlMediaTypeFormatter(Notice 25(bolded) added to the...

View Article


Edited Issue: Installing v2 of the Microsoft.AspNet.Webpages NuGet package...

1. Create a Razor v1 web site2. Open web.config and add the following entry in <appSettings />.<add key="webPages:Version" value="1.0.0.0" />3. Open the NuGet package manager and install...

View Article

Edited Issue: EntitySetController.Get(TKey) breaks when $expand query options...

This is a bug in Web API OData, nightly build. I believe this is a bug in `ODataEntityTypeSerializer`, but it is also likely a design flaw in EntitySetController.In OData, it's valid to have a url like...

View Article

Edited Issue: $expand breaks use of Get(ODataQueryOptions) [1073]

Bug, or "how do I do this", in Web API OData:Using the nightly builds to test out $expand support - note that I really really want to switch to Web API OData over WCF Data Services, because the...

View Article


Edited Task: MQ: Perf tests: refactor and add verification [818]

Performance tests improvement - refactor the client code and add verification as well

View Article


Edited Task: MQ: Review use of functional tests; convert some to unit tests...

Prefer unit testing to functional/integration testing in dev tests to reduce the time used in running tests in build.cmd* Identify all functional tests and separate them from unit tests.* Ensure every...

View Article

Edited Issue: Can't unit test code that generates OData links [769]

There's no unit that encapsulates the logic around generating a full OData link, so tests end up integration style. Having an odata link factory abstraction allows unit testing such code.We are putting...

View Article

Edited Issue: Add an ODataClientMediaTypeFormatter as a sample [433]

It is super helpful while doing deserialization tests. We can mark it internal or document it saying that it can be used only for unit testing.

View Article

Edited Feature: OData $format parameter is ignored [278]

In WebApi OData requests $format parameter, which should allow to change returned format is ignored, even it said, that it should override headers information...

View Article


Edited Issue: Attribute inheritance preference not being honored by...

I have a custom controller config attribute created like the following:[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] public class MyConfigAttribute : Attribute,...

View Article

Edited Feature: Add json.net support for Delta [777]

Currently Delta<T> only works with the ODataFormatter. It should also work with json serialized from JSON.NET/JavaScript/JsonMediaTypeFormatter. Json is used heavily by web api and various...

View Article


Edited Issue: Dealing with DTOs in Queryable actions [839]

Based on this great articlehttp://blogs.msdn.com/b/webdev/archive/2013/02/06/protect-your-queryable-api-with-validation-feature-in-asp-net-web-api-odata.aspxI have more input for the team wrt real...

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


Edited Issue: Unit of Range header changes when sent to server [300]

If I create a request and use HttpClient to send to a server, value of the Unit changes to "bytes" regardless of the value set:request = new HttpRequestMessage(HttpMethod.Get,...

View Article

Edited Feature: AntiForgery with AJAX support [299]

AntiForgery should support tokens coming in by AJAX from the headers. I'd like to modify the classes and contribute. How do I go about this or will Microsoft do it?

View Article

Edited Feature: add ActionButton helper [275]

Sometimes I want an ActionLink to show up as a button. An edit button that goes to /Item/Edit/1 comes to mind. My solution is to create a helper that takes exactly the same parameters as ActionLink,...

View Article
Browsing all 7925 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>