title: Specified type member"Status" not supported in LINQ to Entities
body: <p>I have a class called PanContent</p>
  
  <pre><code>public class PanContent
      {        
          public int Id { get; set; }           
          public string Description { get; set; }
          public string Content { get; set; }            
  
          public PanContentStatus Status { get; set; }
          public ActivityId ActivityId { get; set; }       
      }
  </code></pre>
  
  <p>And I have an enum type PanContentStatus </p>
  
  <pre><code>public enum PanContentStatus
      {
          Active = 0,
          Partial,
          Inactive,
          Deleted
      }
  </code></pre>
  
  <p>I'm trying to use this in my Controller</p>
  
  <pre><code>public ActionResult Index()
      {
          var db = new TlDbContext();
          var status = PanContentStatus.Partial;
  
          var content = db.PanContents.Where(p =&gt; p.Status == status).FirstOrDefault();
          if (content != null)
          {
              return View(content);
          }
          else
          {
              return View();
          }
      }
  </code></pre>
  
  <p>and then use it in my view</p>
  
  <pre><code>@model IEnumerable&lt;Sample.Models.PanContent&gt;
  &lt;script type="text/javascript"&gt;
      var model = @Html.Raw(Json.Encode(Model));
      for (var m in model) {
                  console.log(m.Content);
              }
  &lt;/script&gt;
  </code></pre>
  
  <p>but I'm getting the error
   "The specified type member 'Status' is not supported in LINQ to Entities.
  Only initializers, entity members, and entity navigation properties are supported."</p>
  
  <p>Any help gratefully received!</p>