title: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
body: <p>I'm using the following code :</p>
  
  <pre><code>using(var sd=new dataEntities())
  {
  var listofdata=sd.users.where(d=&gt;d.id.ToString().Contain("2"));// id as int
  // error : LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.
  }
  </code></pre>
  
  <p>I looked at the site but did not find answer</p>