Click here to Skip to main content
15,881,826 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The Dynamics CRM 2011 RetriveMultiple method returns an EntityCollection. I need to convert the returned entity collection to a List ?
Posted

Did you try:

List<myentity> entityList = new List<myentity>(myEntityCollection);
And by the way if you import the System.Linq namespace in order to bring the .ToList() extension method into scope, there's no reason why:

List<myentity> entityList = myEntityCollection.ToList();
wouldn't work as EntityCollection<t> implements IEnumerable<t>.

Refer :
http://stackoverflow.com/questions/7640836/how-to-convert-entitycollectiont-to-listt[^]
 
Share this answer
 
v2
Comments
Raje_ 1-Sep-14 11:34am    
You should always provide the original link :)
Please go through this, this will help you
convert an Entity Collection to a List
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900