I have the following code which sends a collection of customers via WCF to a client:
EntityCollection customers= new EntityCollection(new CustomerEntityFactory());
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntityCollection(toReturn, null);
}
On the client I get this colleciton via:
IEntityCollection2 myCustomers= server.GetCustomers();
How do I fill?? the following customers collection with the customers in myCustomers
EntityCollection customers= new EntityCollection(new CustomerEntityFactory());