I have a hierarchy in which the Department contains teams and teams containing delegates. What I'm trying to do is get a list of delegates who exist within this Department. I tried to do it like this:
var teams = from tms in db.Teams where tms.DepartmentID == DepartmentID select tms; var TeamDelegates = from tds in db.J_TeamDelegates where tds.TeamID in teams.TeamID
But the collection of commands does not allow you to refer to a specific property as a collection. What I'm trying to say is "Select all delegates with TeamID in team collections."
source share