concept EF6 in category entity framework

This is an excerpt from Manning's book Entity Framework Core in Action.
Watch for notes like this throughout the book. They point out the places where EF Core is different from EF6.x. Also, be sure to look at the summaries at the end of each chapter. They point out the biggest changes between EF6 and EF Core in the chapter.
EF Core has a slightly different approach to setting the SQL data type of a column. If you provide the data type, you need to give the whole definition, both type and length/precision—for instance:
[Column(DataType = "varchar(nnn)")],wherennnis an integer number. In EF6, you can use[Column(DataType = "varchar")]and then define the length by using[MaxLength(nnn)], but that doesn’t work in EF Core. See https://github.com/aspnet/EntityFramework/issues/3985 for more information.