Hello is there a known issue for left outer join not working? I think I copied the left join exactly
If I use
MyDataContext dc = new MyDataContext(conn);
var q = from stuff in dc.stuffs
join price in dc.prices
on stuff.sifra equals price.sifra
into stuff_price
where stuff.name.ToLower().Contains(tbSearch.Text.ToLower())
|| stuff.shortname.ToLower().Contains(tbSearch.Text.ToLower())
from ac in stuff_price.DefaultIfEmpty()
select new
{
};
I get all the stuffs from database, but when I add a field from the prices table:
MyDataContext dc = new MyDataContext(conn);
var q = from stuff in dc.stuffs
join price in dc.prices
on stuff.sifra equals price.sifra
into stuff_price
where stuff.name.ToLower().Contains(tbSearch.Text.ToLower())
|| stuff.shortname.ToLower().Contains(tbSearch.Text.ToLower())
from ac in stuff_price.DefaultIfEmpty()
select new
{
, ac.price
};
I get no stuff out no matter if there is a record in the right table or not.
What am I doing wrong?