I can’t get the right result, maybe it broke at the first query, can someone find the problem.
var query = from case in dbEntity.Cases
join Comm in dbEntity.Comms on case.log_id equals comm.CaseId into collection
from subCase in collection.DefaultIfEmpty()
select new { case, subCase.status };
I want to get all the Cases and the status value in Comms. log_id and CaseId are the join keys.
1 Answer