Why does my WCF service return and ARRAY instead of a List <T> ?
Posted
by user193189
on Stack Overflow
See other posts from Stack Overflow
or by user193189
Published on 2010-03-26T17:43:58Z
Indexed on
2010/03/26
17:53 UTC
Read the original article
Hit count: 132
In the web servce I say
public List<Customer> GetCustomers()
{
PR1Entities dc = new PR1Entities();
var q = (from x in dc.Customers
select x).ToList();
return q;
}
(customer is a entity object)
Then I generate the proxy when I add the service.. and in the reference.cd it say
public wcf1.ServiceReference1.Customer[] GetCustomers() {
return base.Channel.GetCustomers();
}
WHY IS IT AN ARRAY? I asked for a List.
help.
© Stack Overflow or respective owner