In some (or many) ways linqtosql makes its hard to recreate a very easy sql. I've tried googling but couldn't find any answer on how to convert to linqtosql the code below with a left outer join that has one condition that should evaluate a column value to true. Thanks in advance to anyone who can help (preferably in c#).
SELECT *
FROM
StockType INNER JOIN StoreProduct ON StockType.StockTypeID = StoreProduct.StockTypeID
LEFT OUTER JOIN Yield ON Yield.ToStockTypeID = StockType.StockTypeID AND StockType.IsWholeFormForSpecies = 1
LEFT OUTER JOIN YieldGrade ON YieldGrade.YieldID = Yield.YieldID AND YieldGrade.SizeGradeCode = 'B'