简体   繁体   English

通过Silverlight Ria服务中的自定义类型列表

[英]Pass list of custom types in Silverlight Ria services

i have to read csv file. 我必须阅读csv文件。 from csv file, i have to create a List list And then return it to the calling method. 从csv文件中,我必须创建一个列表列表,然后将其返回到调用方法。

do you recommend any other alternative? 您是否建议其他替代方法? also CustomClass has a property List. CustomClass也具有属性List。 It's always null on the silverlight side. Silverlight方面始终为空。 Can you tell me what the solution is? 你能告诉我解决方案是什么吗?

The solution is to use [Include] and [Associate] attributes for properties of the class. 解决方案是对类的属性使用[Include]和[Associate]属性。

Also to read data, we can return an IEnumerable type eg list, ilist from our ria service to the silverlight application 同样要读取数据,我们可以从ria服务返回IEnumerable类型(例如list,ilist)到silverlight应用程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM