【发布时间】:2011-02-01 07:11:09
【问题描述】:
在网络服务中我说
public List<Customer> GetCustomers()
{
PR1Entities dc = new PR1Entities();
var q = (from x in dc.Customers
select x).ToList();
return q;
}
(客户是一个实体对象)
然后我在添加服务时生成代理.. 并在 reference.cd 中说
public wcf1.ServiceReference1.Customer[] GetCustomers() {
return base.Channel.GetCustomers();
}
为什么是数组?我要了一份清单。
帮助。
【问题讨论】: