title: How can I save an enumeration value to a database?
body: <p>For example:</p>
  
  <pre><code>namespace PizzaSoftware.Data
  {
      public class User
      {
          public string Username { get; set; }
          public string Password { get; set; }
          public Permission PermissionType { get; set; }
      }
  
      public enum Permission
      {
          Basic,
          Administrator
      }
  }
  </code></pre>
  
  <p>If if I were to use Entity-Framework's CodeFirst, how can I save this value?</p>
  
  <p>This is for a Windows Forms, Desktop application.</p>
  
  <p>Thank you!</p>