title: IN condition in LINQ to replace multiple OR conditions
body: <p>I have an entity framework query as shown below. Here I am trying to find entities for which there is no <code>fax</code> information for <code>primary</code> and <code>secondary</code> users. I am using two <code>person_role_cd</code> conditions using “OR”.</p>
  
  <p>What is the best LINQ way to make the same logic with something like SQL “IN” condition? For example,  <code>p.person_role_cd IN (“Primary”, “Secondary” )</code></p>
  
  <pre><code>query = query
  .Where(l =&gt; l.loan_documents
   .FirstOrDefault(d =&gt; d.document_type_cd == “Application”)
   .loan_persons.Any(p =&gt; 
  (
                                  p.fax_no != null       
                                  &amp;&amp;
                                   (
                                             p.person_role_cd == “Primary”
                                             ||
                                              p.person_role_cd == “Secondary”
                                    )
                                    )
                                    ) == false
                                 );
  </code></pre>