WCF Data Services - Including children on first request
I have an entity model with a sales line and a multiple line items. When I do a request for a particular line, I get the line information back, but I don't get an of the children line items back. I've tried removing the [XmlIgnoreAttribute()] and [SoapIgnoreAttribute()] from the navigation property but I still don'开发者_如何学JAVAt get the child items. Can WCF Data Services not serialize an entire object graph in one shot?
No you must say service that you want to load navigation property as well by using Expand extension method on client.
精彩评论