I am getting very different type of scenario here, I am applying Left Join between 4 tables, no table returns any record but when i get result , it shows 1(one) count of row with all values set to null.
Here is my code:
var qry2 = (from p in dbModel.tbl_PROJECT
join c in dbModel.tbl_PROJECTxCOMPONENT
on p.ProjectID equals c.ProjectID
into list8
from l8 in list8.DefaultIfEmpty()
join a in dbModel.tbl_PROJECTCOMPONENT
on l8.ProjectComponentID equals a.ProjectComponentID
into list9
from l9 in list9.DefaultIfEmpty()
join a in dbModel.tbl_COLOR
on l9.ColorID equals a.ColorID
into list10
from l10 in list10.DefaultIfEmpty()
where p.ProjectID == projectId
select new ProjectDetails1
{
Title = l9.Title,
ColorId = l9.ColorID,
ProjectComponentID = l9.ProjectComponentID,
ColorDefinition = l10.ColorDefination
}).ToList();