How does linq decide between inner & outer joins
- by user287795
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