title: Not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression
body: <p>I have looked at all the examples related to this but have not been able to solve my issue.</p>
  
  <p>I am creating a dropdownlist in asp .net mvc3.</p>
  
  <p>I have a repository which returns:</p>
  
  <pre><code>    public IEnumerable&lt;SelectListItem&gt; GetPropertyTypeSelectList()
      {
          var propertyTypes = from p in db.PropertyType
                                  orderby p.PropertyTypeDescription
                                  select new SelectListItem
                                  {
                                      Text = p.PropertyTypeDescription,
                                      Value = p.PropertyTypeId.ToString()
                                  };
          return propertyTypes;
      }
  </code></pre>
  
  <p>My viewmodel looks like this:</p>
  
  <pre><code>public class AddPropertyViewModel
  {
      public Property Property { get; set; }
      public IEnumerable&lt;SelectListItem&gt; PropertyTypes { get; set; }
      public IEnumerable&lt;SelectListItem&gt; FurnishedTypes { get; set; }
  }
  </code></pre>
  
  <p>My controller for "create" action for HttpGet looks like this:</p>
  
  <pre><code>    public ActionResult AddProperty()
      {
          AddPropertyViewModel viewModel = new AddPropertyViewModel
          {
              PropertyTypes = websiterepository.GetPropertyTypeSelectList()
  
          };
          return View(viewModel);
      }
  </code></pre>
  
  <p>and the view is like this:</p>
  
  <pre><code>    &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.Property.PropertyType)
          @Html.DropDownListFor(model =&gt; model.Property.PropertyType, Model.PropertyTypes)
      &lt;/div&gt;
  </code></pre>
  
  <p>I am getting the error above. From what I have read it looks like ToString() is causing the problem. But I am not sure how to correct it.</p>
  
  <p>Thanks.</p>