开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜