How to perform a many-to-many Linq query with Include in the EF.
- by despart
Hi, I don't know how to perform this query using Linq and the EF.
Imagine I have three tables A, B and C.
A and B have a many-to-many relationship.
B and C have a 1-to-many relationship.
I want to obtain records from B including C but filtering from A's Id. I can get easily the records from B:
var b = Context.A.Where(x =>…