Problem with a Linq to Entity query that contains a passed list of entities?

You should be able to Select the Parent entites from your IEnumerable of students students. SelectMany(s => s.StudentParents. Select(sp => sp.

NtParent_Parent)) This performs a projection from your collection of students, not all Students Logically it is something like here's a set of students for each of those students, get the student parent entities for each of those studentparent entities, get the parent It also may be more useful to select into an anonymous type so you can see which parents belong to which students students. Select(s => new { Student = s, Parents = s.StudentParents. Select(sp => sp.

NtParent_Parent))}).

You should be able to Select the Parent entites from your IEnumerable of students. Students. SelectMany(s => s.StudentParents.

Select(sp => sp. NtParent_Parent)); This performs a projection from your collection of students, not all Students. Logically it is something like here's a set of students for each of those students, get the student parent entities for each of those studentparent entities, get the parent It also may be more useful to select into an anonymous type so you can see which parents belong to which students.Students.

Select(s => new { Student = s, Parents = s.StudentParents. Select(sp => sp. NtParent_Parent))}).

My navigational properties in the User entity are StudentParent_Parent and StudentParent_Student. But I also need to only get the parents from the IEnumerable list of students I am passing in. – Chad Myers Sep 22 at 1:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions