title: List<Enum> could not be mapped
body: <p>I have models in my .Net Core project where I want to have a List of Enum.</p>
  
  <pre><code>public class CartOptional
      {
          [Required]
          public Guid Id { get; private set; }
          public int Price { get; set; }
          public string CartId { get; set; }
          public string Type { get; set; }
          public List&lt;FieldValidator&gt; Validators { get; set; }
          public string Label { get; set; }
          public string Value { get; set; }
          public DateTime CreatedAt { get; set; } = DateTime.Now;
          public DateTime UpdatedAt { get; set; } = DateTime.Now;
      }
  </code></pre>
  
  <p>FieldValidator is indeed an Enum</p>
  
  <p>EF return me this error : </p>
  
  <blockquote>
    <p>The property 'CartOptional.Validators' could not be mapped, because it is of type 'List' which is not a supported primitive type or a valid entity type. Either explicitly map this property, or ignore it using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.</p>
  </blockquote>
  
  <p>I tried different solution like adding <code>[Serializable]</code>. But nothing seems to work. I don't understand why the system cannot take the underliying <code>int</code></p>
  
  <p>EDIT: </p>
  
  <p>I tried the solution with <code>[Flags]</code> annotation like so</p>
  
  <pre><code>[Flags]
  public enum FieldValidator
  {
      REQUIRED = 1,
      ALPHABETIC = 2,
      NUMERIC = 4,
      EMAIL = 8,
      PHONE = 16,
      DATE = 32
  }
  </code></pre>
  
  <p>And in the parent class I have <code>public FieldValidator Validators { get; set; }</code></p>
  
  <p>But now I try to POST a new element and I got this error when I try to validate the <code>ModelState</code>:</p>
  
  <blockquote>
    <p>"tierList[0].fieldList[0].validators": [
            "Unexpected token StartArray when parsing enum. Path 'tierList[0].fieldList[0].validators', line 24, position 25."
        ]</p>
  </blockquote>
  
  <p>What is a <code>token StartArray</code> ?</p>