title: Integer Contains Using Linq
body: <p>I'm having some difficulty writing a linq query that will check whether the consecutive digits in an integer are contained in the primary key of a table.  So, suppose there is a table called <code>Employees</code> with a primary key on the column <code>Employees.Id</code>.  Suppose this primary key is of Sql Server datatype <code>INT</code>.  I would like to write a linq query using Entity Framework Code First that will return all employees whose primary key contains the string 456.  Something like:</p>
  
  <pre><code>string filter = "456";
  
  var results = from e in myDbContext.Employees
    where e.Id.Contains(filter)
    select e;
  </code></pre>
  
  <p>The problem is that the Contains method is not offered for integer datatypes in C#...</p>