Comment puis-je produire quelque chose comme ça avec Linq? Je suis en train de travailler sur quelque chose, cela est lié à mon autre poste, mais mon distincte ne cesse de revenir avec plus de lignes que prévuLinq to Sql Distinct renvoie plusieurs lignes
Add Conditional Join Dynamically with Linq
select distinct c.CompanyID, c.CompanyName from Company c
left join CompanyIndustry ci
on c.companyid = ci.companyid
left join CompanyService cs
on c.CompanyID = cs.CompanyID
where cs.ServiceID = 6 and ci.IndustryID = 4