title: Enum type not being mapped to DB table
body: <p>I'm using EF 5.0 Code First, in a .NET 4 library. Trying to set a class member to be of an <code>Enum</code> type, but it doesn't get persisted to the database, and no runtime exception occurs when EF is creating the database based on the code.</p>
  
  <p>Of course, when I try to query against that Enum:</p>
  
  <pre><code>var departments = db.Departments
                      .Where(dep =&gt; dep.Name == DepartmentNames.English);
  </code></pre>
  
  <p>I get an exception saying:</p>
  
  <pre><code>The specified type member 'Name' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
  </code></pre>
  
  <p>I am using Microsoft's example of an Enum use: <a href="http://msdn.microsoft.com/en-us/data/hh859576.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/data/hh859576.aspx</a></p>
  
  <p>Are Enum members not supported yet? Does EF 5.0 differs somehow when hosted by a .NET 4 environemt than when hosted by a .NET 5 one?</p>