title: Filter records using Linq on an Enum type
body: <p>I'm hoping this is a simple solution. I have a field (PressType) in a table (Stocks) that is seed populated by using an Enum. The table stores the data as an integer. However when I want to query some data via Linq it gives me issues. I can filter any other fields in the table using this format however on the Enum populated field it says</p>
  
  <blockquote>
    <p>the "==" operator cannot be applied to operands of type "Models.PressType" and "string".</p>
  </blockquote>
  
  <p>Any help you could give would be appreciated, thanks.</p>
  
  <pre><code>var test = db.Stocks.Where(x =&gt; x.PressType == myValue);
  </code></pre>