title: ASP .NET MVC - Using a enum as part of the model
body: <p>(just learning MVC)</p>
  
  <p>I have created a model class:</p>
  
  <pre><code>public class Employee
      {
          public int ID { get; set; }
  
          [Required(ErrorMessage="TM Number is Required")]
          public string tm_number { get; set; }
  
          //use enum?
          public tmRank tm_rank { get; set; }
      }
  </code></pre>
  
  <p>The model class refers to the enum 'tmRank':</p>
  
  <pre><code>public enum tmRank
      {
          Hourly, Salary
      }
  </code></pre>
  
  <p>When I create a view from this model the 'tm_rank' field does not appear?  My hope was that MVC would create a list of the enum values.</p>