title: Linq to Sql Inner Join
body: <p>I am writing a linq to sql statement using the join. By searching I reached the the link below : 
  <a href="https://stackoverflow.com/questions/37324/what-is-the-syntax-for-an-inner-join-in-linq-to-sql">What is the syntax for an inner join in LINQ to SQL?</a>
  in this question the answer is like : </p>
  
  <pre><code>var dealercontacts = from contact in DealerContact
                       join dealer in Dealer on contact.DealerId equals dealer.ID
                       select contact;
  </code></pre>
  
  <p>in this statement, inner join is used on single comparison statement i.e. <code>on contact.DealerId equals dealer.ID</code> But when I tried to do <code>on contact.DealerId equals dealer.ID &amp;&amp; contact.Branch equals dealer.Branch</code>, It does not accept the second comparison statement.
  Please guide me how can I have this?</p>