MaxLength/MinLength Attribute in EF Core
The MaxLength Attribute and MinLength Allow us to specify the size of the column. Both these attributes are available in System.ComponentModel.DataAnnotations library. These attributes are similar to StringLength Attribute. Both of these attributes are available in EF 6 & EF Core.