LINQ to SQL left outer joins
Posted
by César
on Stack Overflow
See other posts from Stack Overflow
or by César
Published on 2010-06-08T11:40:13Z
Indexed on
2010/06/08
11:52 UTC
Read the original article
Hit count: 202
linq-to-sql
|left-join
Is this query equivalent to a LEFT OUTER join?
var rows = from a in query
join s in context.ViewSiteinAdvise on a.Id equals s.SiteInAdviseId
where a.Order == s.Order
select new
{....};
I tried this but it did not result
from s in ViewSiteinAdvise
join q in query on s.SiteInAdviseId equals q.Id into sa
from a in sa.DefaultIfEmpty()
where s.Order == a.Order
select new {s,a}
I need all columns from View
© Stack Overflow or respective owner