title: EF5 Code First Enums and Lookup Tables
body: <p>I'd like to define an enum for EF5 to use, and a corresponding lookup table.  I know EF5 now supports enums, but out-of-the-box, it seems it only supports this at the object level, and does not by default add a table for these lookup values.</p>
  
  <p>For example, I have a User entity:</p>
  
  <pre><code>public class User
  {
      int Id { get; set; }
      string Name { get; set; }
      UserType UserType { get; set; }
  }
  </code></pre>
  
  <p>And a UserType enum:</p>
  
  <pre><code>public enum UserType
  {
      Member = 1,
      Moderator = 2,
      Administrator = 3
  }
  </code></pre>
  
  <p>I would like for database generation to create a table, something like:</p>
  
  <pre><code>create table UserType
  (
      Id int,
      Name nvarchar(max)
  )
  </code></pre>
  
  <p>Is this possible?</p>