开发者

WCF Data Services - Including children on first request

开发者 https://www.devze.com 2023-04-02 01:40 出处:网络
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

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

精彩评论

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