How can I filter for specific information from an EntityCollection?

If I understand the question - you are looking to get the Grade object (via the GradeStudent middle table). If this is the case, you would need to create a NavigationProperty in your EF model to relate Grade to GradeStudent(* - 1) and GradeStudent to Student (0..1 - *) As for fetching the data into your context, is this a silverlight app using RIA? If so, the GetStudentsQuery method in your service would need to include those entities so that data is returned with your Student object.

If I understand the question - you are looking to get the Grade object (via the GradeStudent middle table). If this is the case, you would need to create a NavigationProperty in your EF model to relate Grade to GradeStudent(* - 1) and GradeStudent to Student (0..1 - *). As for fetching the data into your context, is this a silverlight app using RIA?

If so, the GetStudentsQuery method in your service would need to include those entities so that data is returned with your Student object.

If grade is known, this should work: StudentRepository repo = new StudentRepository(); var results = repo.FindAllStudents(). Where( s => (s. Name == txtSearchQuery.

Text || s. LastNameFather == txtSearchQuery. Text || s.

LastNameMother == txtSearchQuery. Text) && s.GradeStudent. Any(gs => gs.

Grade = grade)).

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