I am trying to make a left outer join on two tables, but I only want to return the results from the first table, where the second table has no (null) record.
var agencies = from a in agencyList
join aa in joinTable
on a.AgencyId equals aa.AgencyId into joined
from aa in joined.DefaultIfEmpty()
where aa == null)
select a;
But this does not exclude non-zero values ββof aa and returns all records in the same way as if "where aa == null" was not.
Any help is appreciated. Thank.
source
share