Linq to Entities and outer joins issue

Posted by Robert Koritnik on Stack Overflow See other posts from Stack Overflow or by Robert Koritnik
Published on 2010-03-22T09:03:29Z Indexed on 2010/03/22 9:11 UTC
Read the original article Hit count: 315

Can somebody tell me, why does Linq to Entities translate many to 1 relationships to left outer joins instead of inner joins? It relation was many to 0..1. There's referential constraint on DB itself, that ensures there's a record in the right table, so inner join should be used instead.

Is it possible to write LINQ in a way so they will translate to inner joins rather than left outer joins. It would speed query execution a lot.

© Stack Overflow or respective owner

Related posts about linq-to-entities

Related posts about outer-join