title: EF Core 2.0 Enums stored as string
body: <p>I was able to store an enum as a string in the database.</p>
  
  <pre><code>builder.Entity&lt;Company&gt;(eb =&gt;
  {
      eb.Property(b =&gt; b.Stage).HasColumnType("varchar(20)");
  });
  </code></pre>
  
  <p>But when it comes time to query EF doesn't know to parse the string into an enum. How can I query like so:</p>
  
  <pre><code>context
      .Company
          .Where(x =&gt; x.Stage == stage)
  </code></pre>
  
  <p>This is the exception: Conversion failed when converting the varchar value 'Opportunity' to data type int</p>