title: choose a few id from db C#
body: <p>I have a database and excel file</p>
  
  <p>And I want to export strings to excel</p>
  
  <p>How to export strings with 1 id I know</p>
  
  <p>The code you can see below</p>
  
  <pre><code>_Hours = Rep.Where(o =&gt; o.Projects.ProjectGroupID == 4).Where(o =&gt; o.Projects.ProjectType == 1).Sum(o =&gt; (decimal?)o.TaskEfforts) ?? 0m,
  </code></pre>
  
  <p>But how I can choose several id's?</p>
  
  <p>This does not work</p>
  
  <pre><code> _Hours = Rep.Where(o =&gt; o.Projects.ProjectGroupID == 4).Where(o =&gt; o.ProjectDescriptionID == 10).Where(o =&gt; o.ProjectDescriptionID == 17).Where(o =&gt; o.ProjectDescriptionID == 18).Where(o =&gt; o.ProjectDescriptionID == 19).Where(o =&gt; o.ProjectDescriptionID == 21).Where(o =&gt; o.ProjectDescriptionID == 24).Where(o =&gt; o.ProjectDescriptionID == 26).Where(o =&gt; o.Projects.ProjectType == 1).Sum(o =&gt; (decimal?)o.TaskEfforts) ?? 0m,
  </code></pre>
  
  <p>I know, that it is an error, but how can I choose some ID's?</p>
  
  <p>Thanks for answers.</p>