title: Why LINQ to Entities does not recognize the method 'System.String ToString()?
body: <p>Getting error inside MVC3 web application.
  <code>LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.</code></p>
  
  <p>when i try to fetch values using EF from query :</p>
  
  <pre><code>public class DataRepository
      {
          public mydataEntities1 dbContext = new mydataEntities1();
  
          public List&lt;SelectListItem&gt; GetPricingSecurityID()
          {
          var pricingSecurityID = (from m in dbContext.Reporting_DailyNAV_Pricing
                                       select new SelectListItem
                                           {
                                                  Text = m.PricingSecurityID.ToString(),
                                                  Value = m.PricingSecurityID.ToString()
                                           });
  
          return pricingSecurityID.ToList();
          }
      }
  </code></pre>