How to enable WCF Ria service for ComplexType as reasult from SP?
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.
精彩评论