title: Searching on an array of integers
body: <p>I've got a string coming in like so:</p>
  
  <pre><code> '202,203,204,205,226,230,274'
  </code></pre>
  
  <p>I want to break this string down into an array of numbers and get back all the records with those Ids.</p>
  
  <p>So far, I have:</p>
  
  <pre><code>string[] myArray = myString.Split(',');
  int[] myIntArray = new int[myArray.Length];
  
   for(int x = 0; x &lt; myArray.Length; x++) {
       myIntArray[x] = Convert.ToInt32(myArray[x].ToString());
   }
  
   model.Records = db.Records
       .Where(q =&gt; q.RecordId.Contains(myIntArray)
       .ToList();
  </code></pre>
  
  <p>It's complaining about Contains not working with ints.  Am I get confused as to what Contains actually does?</p>
  
  <p>Thanks in advance!</p>