mercredi 18 juin 2014

Web API converted to Azure Mobile Service not serializing all properties


Vote count:

0




I have a working Web API that I am converting to a .Net Azure Mobile Service. The API returns a complex model - objects with properties - some of which are collections of other objects. This works as expected with plain Web API but with Azure Mobile Services I have an issue where one of my models does not have all it's properties serialized.


When I set a break point on the return statement in the controller, I see that all the properties and their values are present. This leads me to believe that the issue is with serialization (JSON).



return Request.CreateResponse(HttpStatusCode.OK, myModel);


How can I go about further debugging this so that I can see why these properties are being excluded?


Note: At the moment I am still running this locally not off Azure. This is with Visual Studio 2013 Update 2 RTM.



asked 9 secs ago






Aucun commentaire:

Enregistrer un commentaire