How would you to convert or cast a List<T>
to EntityCollection<T>
?
Sometimes this occurs when trying to create 'from scratch' a collection of child objects (e.g. from a web form)
Cannot implicitly convert type 'System.Collections.Generic.List' to 'System.Data.Objects.DataClasses.EntityCollection'See Question&Answers more detail:os