开发者

WCF DataServices Expand 12 Limitations

开发者 https://www.devze.com 2023-01-12 17:53 出处:网络
I\'m using WCF DataServices in a Silverlight app. My issues is that with the model I\'m referencing I need access to more than 12 expanded properties. The reason is that I am referencing a service wit

I'm using WCF DataServices in a Silverlight app. My issues is that with the model I'm referencing I need access to more than 12 expanded properties. The reason is that I am referencing a service with recursive model and basically I need 5 expands on 4 levels which exceed开发者_运维百科s the max number of expands which is apparently 12. Is there another solution rather than calling BeginLoadProperty hundreds or times to get the desired effect?


You could build multiple queries on the client which together will get you all the data you need and then use the DataServiceContext.ExecuteBatch to get them all in a single request. It will still run multiple queries against the database, but you will get just one HTTP request and one response.

0

精彩评论

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