I've been trying to convert this SQL that I have into a lambda expression. However i've spent too many hours trying to solve it now and hope that maybe you guys could explain a solution to me please.
SELECT *
FROM Products
INNER JOIN Details on Products.ID = Details.ID
INNER JOIN Orders ON Details.ID = Orders.ID
Attempts:
db.Products.Include(x => x.Details)
.Include("Details.Orders");
Attempted to use an Join
method to no avail either. It needs to be returned as a Iqueryable
. I thought using the include would simplify the join process however it seems more complicated. No matter which tables I include with the Include
it doesn't seem to be possible to get the Orders
.