Hi,
I have some difficulties when it comes to multi-table query in Linq to Sql. I have 3 tables:
- Product
- Row (with Fk-ProductId)
- Price (with Fk-RowId)
I'd like to retrieve the min(Price) for a product. I was able to get the right Sql query, but now I need to 'translate' this query into Linq To Sql. Can you please help me ?
Here the Sql query:
SELECT Min(cp.Price)
FROM Products p, Rows r, ConstantPrices cp
WHERE p.ProductId = r.ProductId AND
r.RowId = cp.RowId AND
p.ProductId = XXX;