Joins not working
<pre><code> public object GetFeaturedUserComapnies(int loginid)
{
    using(var context=huntableEntities.GetEntitiesWithNoLock())
    {


    var newquery=(from a in context.Users join  b in context.EmploymentHistories 
                        on a.Id equals b.UserId join c in context.Companies 
                        on a.CountryID equals c.CountryId or b.industryid equals 
                                                          c.industryid
                        where  a.Id==loginid 
                        select new {c.CompanyLogoId, c.CompanyName,
                                    c.Id}).ToList().Distinct();

        return newquery;
    }
}
</code></pre>

<p>The problem is </p>

<ol>
<li>join c in context.Companies on a.CountryID equals c.CountryId or b.industryid equals  c.industryid not working throwing error not supported</li>
<li>How to get the count from this object method</li>
</ol>
