Hi,
Hi just started using the tool and it looks great.
I have the following wcf method which will fetch me any list. Obviosuly i need to transport it as IEntityCollection2. On the client end I would like to convert this into its generic list type. I can only do this if I create it in the service as a generic list which I cant do or have not worked out how to do.
Is there a clean way I can do this?
Thanks in advance.
public IEntityCollection2 GetList(EntityType entityType) {
var col = new EntityCollection(EntityFactoryFactory.GetFactory(entityType));
using (DataAccessAdapter adapter = new DataAccessAdapter()) {
adapter.FetchEntityCollection(col, null);
return col;
}
}