title: LINQ get find all with id in list
body: <p>I am trying to figure out non query way to do return a list of all objects if their ID is in test list. Example below:</p>
  
  <pre><code>Hero - table
  Columns: id = INT , name = STRING, age = INT, power = INT;
  
  var testList = {1,2,3};
  var secondArray = {};
  
  foreach (var id in testList )
  {
      // check if ID in database
      var item = db.Hero.ToList().Find(o =&gt; o.Id = id);
      if( item != null)
      {
         secondArray.push(item);
      }
  }
  </code></pre>
  
  <p>Now i have seen this whole thing done in single line but cannot remember how it was done.</p>
  
  <p>The result i am after is List of all objects containing that have ids 1,2,3.</p>