Quando eu coloco esse código: [StringLength(20)]
Aparece esse erro:
System.InvalidOperationException: 'The model backing the 'EstoqueContext' context has changed since the database was created. Consider using Code First Migrations to update the database (http://go.microsoft.com/fwlink/?LinkId=238269