title: Selecting multiple from LINQ query
body: <p>I use this little piece of code to get the IDs I need, and put them in an array</p>
  
  <pre><code>var userids = from a in db.Person
                select a.idlist;
  
  string[] idarray = userids.FirstOrDefault().ToString().Split(';');
  </code></pre>
  
  <p>How can I use this array of ids to select the matching rows in another query like this</p>
  
  <pre><code>[HttpGet]
  public ActionResult GetStuff()
  {
      var Item = from a in db.Table
                 where a.id == idarray[0]
                 and where a.id == idarray[1]
                 and where a.id == idarray[2]
                 etc...
                 select new
                     {
                         a.itemid,
                         a.Element
                     };
  
      return Json(Item, JsonRequestBehavior.AllowGet);
  }
  </code></pre>