I'm creating tables with Entity Framework
, and I'm using Data Annotation
to determine the amount of characters, I wanted to know what the largest size supported for typing text and if the correct type would be string
same?
In case I wanted one that would fit as large as possible. By default I use 255.
[DisplayName("Informações Diversas")]
[Required(ErrorMessage = "Preencha as informações diversas")]
[StringLength(255, MinimumLength = 3, ErrorMessage = "As informações diversas deve ter de 3 a 255 caracteres")]
public string InformacoesDiversas{ get; set; }