title: MVC LINQ with Where condition
body: <p>I am trying to make search function in my project.</p>
  
  <p>Currently, I want to convert decimal value to string for comparing with searchString.</p>
  
  <p>When I put like this:</p>
  
  <pre><code>public ActionResult Search(string searchString)
      {
  
          var product = from a in _db.Product.Include(a =&gt; a.Category)
                        select a;
          if (!String.IsNullOrEmpty(searchString))
          {
              product = product.Where(a =&gt; a.model.ToUpper().Contains(searchString.ToUpper())
                                 || Convert.ToInt32(a.displaySize).ToString().Contains(searchString));
          }
          return View(product.ToList());
      }
  </code></pre>
  
  <p>It has error, </p>
  
  <blockquote>
    <p>'LINQ to Entities does not recognize the method 'System.String
    ToString()' method'.</p>
  </blockquote>
  
  <p>How can I compare decimal value with string value?</p>
  
  <p>Could you help me?</p>
  
  <p>Thanks.</p>