Need to select data in entity framework but need to filter on the childrent and grandchildren
i have 4 tables. Parent -> Child -> GrandChild -> GreatGrandChild I want to return all the parents but filter on child and greatgrandchildren.
in other words (for example)
SELECT Parent.*
FROM Parent
INNER JOIN Child
INNER JOIN Grandchild
INNER JOIN GreatGrandChild
WHERE child.Column5 = 600 AND
GreatGrandChild.Column3 = 1000
it cant be anomymous type because i need to update the data and saveChanges to the db.
using vs 2010 and EF 4.0
Using linq you should need something like this.