title: Lambda expression where id in list of ids
body: <p>I have 2 lists </p>
  
  <pre><code>var listquestionold = db.tblExamQuetions.Where(p =&gt; p.QuetionExamId == oldexamid).ToList();
  var listquestionnew = listquestionnew = db.tblExamQuetions.Where(p =&gt; p.QuetionExamId == examid ).ToList();
  List&lt;tblExamQuestionAnswers&gt; listanswers = new List&lt;tblExamQuestionAnswers&gt;();
  </code></pre>
  
  <p>How can I get answers where <code>questionId</code> is in <code>listquestionold</code>:
  <code>listanswers =db.tblanswers.where(p=&gt; p.ExamQuestionId exists in listquestionold</code> ?</p>