I am using Scaffold-DBContext commnand in order to create a model from my database. I use the option -DataAnnotations for generating DataAnnotation attributes. I got Required and ColumnAttribute, for example:
[Required]
[Column(TypeName = "varchar(100)")]
public string Cognome { get; set; }
But I don't have StringLength attribute. Is there any way to generate this attribute? Thank you.