get data using junction table with linq-sql confused :$

Posted by raklos on Stack Overflow See other posts from Stack Overflow or by raklos
Published on 2010-02-16T12:29:40Z Indexed on 2010/06/05 19:02 UTC
Read the original article Hit count: 167

Filed under:
|

Im using linq-sql .I have 3 tables. e.g

Project, People and a ProjectsPeople(fk's ProjectID and PeopleID) (junction) Table.

given a set of peopleIDArray (an array of ints as people ID's)

how can i get only Projects that have atleast one of the peopleId's associated with them?

i.e there will be atleast one (may be more) record in the ProjectsPeople table that will have a ProjectId and an id from the peopleIDArray )

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about linq-to-sql