CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Closed
No files are attached
MarkBerryman wrote Nov 15, 2012 at 9:59 PM
youssefm wrote Dec 13, 2012 at 7:08 PM
Geminiman wrote Dec 15, 2012 at 1:16 PM
hongyes wrote Dec 17, 2012 at 6:52 PM
Geminiman wrote Dec 17, 2012 at 8:38 PM
josundt wrote Dec 20, 2012 at 3:01 PM
hongyes wrote Jan 2 at 5:42 PM
josundt wrote Jan 8 at 11:32 PM
Luiggi370z wrote Jan 9 at 2:13 PM
SEWilson wrote Jan 18 at 8:14 AM
danroth27 wrote Jan 18 at 4:20 PM
SEWilson wrote Jan 18 at 6:12 PM
SEWilson wrote Jan 18 at 7:52 PM
IEnumerable query = content.get_Value() as IEnumerable; IQueryable queryable = this.ExecuteQuery(query, request, actionDescriptor); content.set_Value(queryable);
Newtonsoft.Json.dll!Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(Newtonsoft.Json.JsonWriter writer, Newtonsoft.Json.Utilities.IWrappedCollection values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) Line 420 C# Newtonsoft.Json.dll!Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) Line 602 C# Newtonsoft.Json.dll!Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(Newtonsoft.Json.JsonWriter jsonWriter, object value) Line 258 C# Newtonsoft.Json.dll!Newtonsoft.Json.JsonSerializer.SerializeInternal(Newtonsoft.Json.JsonWriter jsonWriter, object value) Line 259 C# Newtonsoft.Json.dll!Newtonsoft.Json.JsonSerializer.Serialize(Newtonsoft.Json.JsonWriter jsonWriter, object value) Line 221 C# System.Net.Http.Formatting.dll!System.Net.Http.Formatting.JsonMediaTypeFormatter.WriteToStreamAsync.AnonymousMethod__c() Line 204 + 0x180 bytes C# System.Net.Http.Formatting.dll!System.Threading.Tasks.TaskHelpers.RunSynchronously(System.Action action, System.Threading.CancellationToken token) Line 125 C# System.Net.Http.Formatting.dll!System.Net.Http.Formatting.JsonMediaTypeFormatter.WriteToStreamAsync(System.Type type, object value, System.IO.Stream writeStream, System.Net.Http.HttpContent content, System.Net.TransportContext transportContext) Line 192 + 0x1bf bytes C# System.Net.Http.Formatting.dll!System.Net.Http.ObjectContent.SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context) Line 64 + 0x39 bytes C#
SEWilson wrote Jan 18 at 9:07 PM
System.Web.Http.OData.Formatter.ODataMediaTypeFormatters.Create() .ToList() .ForEach(f => config.Formatters.Insert(0, f));
$.ajax('/api/foo?$inlinecount=allpages', { headers: { "Accept":"application/json;odata=verbose", "MaxDataServiceVersion":"3.0" },
config.Formatters.Remove(config.Formatters.JsonFormatter);
SEWilson wrote Jan 18 at 10:41 PM
System.Web.Http.OData.Formatter.ODataMediaTypeFormatters.Create() .ToList() .ForEach(f => config.Formatters.Insert(0, f)); var modelBuilder = new System.Web.Http.OData.Builder.ODataConventionModelBuilder(); modelBuilder.EntitySet<Foo>("foo"); config.Routes.MapODataRoute( routeName: "OData", routePrefix: "odata", model: modelBuilder.GetEdmModel());
SEWilson wrote Jan 18 at 10:59 PM
"The OData formatter requires an attached request in order to deserialize. Controller classes must derive from ODataController or be marked with ODataFormattingAttribute. Custom parameter bindings must call GetPerRequestFormatterInstance on each formatter and use these per-request instances.");
raghuramn wrote Jan 18 at 11:29 PM
hongyes wrote Jan 18 at 11:44 PM
SEWilson wrote Jan 20 at 7:13 AM
Sign in to add a comment
Keyboard shortcuts are available for this page.