Edited Issue: ODataServiceSample has hard coded id type on delete link...
EntitySetController.cs: Ln 195 | 212 | 227ID type should be TKey. relatedID should be string as we don’t know it’s real type.
View ArticleCommented Issue: ODataServiceSample has hard coded id type on delete link...
EntitySetController.cs: Ln 195 | 212 | 227ID type should be TKey. relatedID should be string as we don’t know it’s real type.Comments: in EntitySetController, change the type of the relatedID in the...
View ArticleEdited Issue: Self/Edit link generated by convention model builder will be...
In my example, I returned string ID as “Test 01”. The self-link looks like: http://hongye2dev3/9cfe3174130842d5b5e43761cee4f566/StringPrimaryKeyType('Test%25201')This url won't work with IIS7 with...
View ArticleEdited Issue: OData formatter handles content types incorrectly [588]
The OData media type formatter says it handles app/xml, app/atom+xml andapp/json;odata=verbose. However, it doesn't always support these content types. For example, for a feed, it only supports atom...
View ArticleEdited Issue: OData formatter handles content types incorrectly [588]
The OData media type formatter says it handles app/xml, app/atom+xml andapp/json;odata=verbose. However, it doesn't always support these content types. For example, for a feed, it only supports atom...
View ArticleCreated Issue: HttpError ModelState does not deserialize to Dictionary. [604]
In our API client library all HttpResponseMessage responses are handled by the following function: private async Task<ApiResponse<TResult>>...
View ArticleCreated Issue: HttpError should use case insensitive comparer [605]
The HttpError object should use a case insensitive comparer for determining key equality since the case of the dictionary keys cannot be guaranteed when sent over the wire.For example, all our JSON...
View ArticleCreated Issue: ValueProviderResult doesn't unwrap List [606]
System.Web.Http.ValueProviders.ValueProviderResult does not unwrap generic lists, only arrays. Some of the WebApi value providers parse the key values into Lists (Mvc value providers used arrays).This...
View ArticleCreated Issue: webapi selfhost double decodes url paths. [607]
this causes issues when model binding data that contains '+' as it double decoding a '+' would result in a ' ' (space)
View ArticleCreated Issue: Caching story for Web API [608]
There’s a couple of things to think about when considering caching – it is not enough to just look at the cache control header and turn off caching. We absolutely want to enable caching in a rich way...
View ArticleEdited Issue: Error creating multiple entity sets for an entity type in...
In the below example, I am trying to create a 2 entity sets for the Product entity type. One is called Products and other is called DiscardedProducts.Model-----static IEdmModel GetImplicitEdmModel(){...
View ArticleCommented Issue: Error creating multiple entity sets for an entity type in...
In the below example, I am trying to create a 2 entity sets for the Product entity type. One is called Products and other is called DiscardedProducts.Model-----static IEdmModel GetImplicitEdmModel(){...
View ArticleCreated Issue: Global Json serializer settings aren't used when posting to...
And the culprit is TryReadQueryAs method of UriExtensions that just instantiates new JsonSerializer. One of the consequences of this, is that I can't bind derived classes to base classes, using...
View ArticleNew Post: Razor Update 2.0.20715.0 (Nuget Package Microsoft.Aspnet.Razor)
I just checked the available updates for an MVC 4 project in VS and it is showing that there is an update available for Razor.Does anyone know what this update does? In other words, why should I...
View ArticleCreated Issue: adding html5 data- attributes to WebGrid [610]
HtmlAttribute's using other controls automatically replace the "_" in the anonymous type to "-". The WebGrid doesn't and there is no direct access to the RouteValueDictionary on the renderer....
View ArticleSource code checked in, #adb41372f7f9
Issue 534: Error creating multiple entity sets for an entity type in Conventional mb. Forgot to include the source entity set name in the error message in earlier commit. Including it now.
View ArticleCommented Issue: Multiple entity sets with same type is not supported for...
Repro code attached.Send request: GET http://localhost:50232/vehicles to repro the issue.The exception is:System.NotSupportedException occurred HResult=-2146233067 Message=Cannot autoCreate binding...
View ArticleEdited Issue: Multiple entity sets with same type is not supported for...
Repro code attached.Send request: GET http://localhost:50232/vehicles to repro the issue.The exception is:System.NotSupportedException occurred HResult=-2146233067 Message=Cannot autoCreate binding...
View ArticleClosed Issue: '/', '\' and ' ' is not handled correctly in string primary key...
'/', '\' can't route to the correct action' ' will be null value when binding to the id parameter.Repro code: public static void RegisterODataRoutes(this HttpConfiguration configuration){// Metadata...
View ArticleEdited Issue: webapi selfhost double decodes url paths. [607]
this causes issues when model binding data that contains '+' as it double decoding a '+' would result in a ' ' (space)
View Article