开发者

How to enable WCF Ria service for ComplexType as reasult from SP?

开发者 https://www.devze.com 2022-12-14 14:33 出处:网络
As learned from Sliverlight forum, WCF ria Service does not support ComplexType, but EF 4.0 supply complextype for results of st开发者_StackOverflow中文版ored procedure.

As learned from Sliverlight forum, WCF ria Service does not support ComplexType, but EF 4.0 supply complextype for results of st开发者_StackOverflow中文版ored procedure. So if I want to use the results from stored procedure to feed data for datagrid in silverlight client, what's the solution? how to resolve it?


EF 4.0 can supply complex types for proc results, but it doesn't have to. You can map regular entities, as well.


See the following:

http://smehrozalam.wordpress.com/2010/11/24/ria-services-sending-complex-types-to-the-client/

I tried it; it works. Also, it seems WCF RIA Services SP1 will be released soon, and it supports complex types.

0

精彩评论

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