title: how to query against an array
body: <p>First off let me start by saying that I'm not sure how to title the question, and I apologize for that.  If something strikes me or you as clever I'll edit it.</p>
  
  <p>My problem is this:</p>
  
  <pre><code>public IActionResult(string deckList //comma-separated-string of numeric characters which represent id's)
  {
  var cards = _context.Cards;
  var deckListArray = deckList.Split(',');
  foreach (var id in deckListArray)
  {
  int x = Convert.ToInt32(id);
  cards = cards.Where(c =&gt; c.ID == id);
  }
  </code></pre>
  
  <p>Alright, so I know that querying inside of a loop is frowned upon to say the least because of performance issues, but this IQueryable collection doesn't even populate correctly with this code.</p>
  
  <p>What would be the appropriate query to get all cards with id's found in the array?</p>