title: Allowed Values of field in ASP.NET
body: <p>Is there any data annotation for the allowed values in ASP.NET MVC Core? Since there is no enum in SQL server I am not able to migrate my class with enum field in it to the database. I want to give possible/allowed values to the field in the class. Is there any way to do this?</p>
  
  <pre><code>    public class Employee
      {
          [Key]
          public int ID { get; set; }
  
          [Required]
          public string Name { get; set; }
  
          [Required]
          public string Status { get; set; }
  
      }
  </code></pre>
  
  <p>I want to provide <strong>Active</strong> and <strong>Inactive</strong> as the only possible values to the Status field.</p>