How does linq decide between inner & outer joins
Posted
by user287795
on Stack Overflow
See other posts from Stack Overflow
or by user287795
Published on 2010-03-27T07:28:51Z
Indexed on
2010/03/27
7:33 UTC
Read the original article
Hit count: 161
linq-to-sql
Hi
Usually linq is using an left outer join for its queries but on some cases it decides to use inner join instead. I have a situation where that decision results in wrong results since the second table doesn't always have suitable records and that removes the records from the first table. I'm using a linqdatasource over a dbml where the relevant tables are identical but one holds historical records removed from the first. both have the same primary key. and I'm using a dataloadoption to load both tables at once with out round trips.
Would you explain why linq decided to use an inner join here?
Thanks
© Stack Overflow or respective owner