2011-10-03 12 views

Respuesta

17

¿Usted intentó:

List<myEntity> entityList = new List<myEntity>(myEntityCollection); 

Y, por cierto si importa el espacio de nombres System.Linq con el fin de llevar el método .ToList() de extensión en el alcance, no hay razón por la cual :

List<myEntity> entityList = myEntityCollection.ToList(); 

no funcionaría como EntityCollection<T> implementa IEnumerable<T>.

+1

Guau, no importé Linq .... Gracias – Darcy

Cuestiones relacionadas