I have this setting in my model:
[StringLength(250)] public string Comment { get; set; }
to set the maximum length to 250 in the database w
For some reason this older post keeps coming up in my search... so just FYI, using EF6 Core it's combined. The above answer errors out for me.
[Column(TypeName = "VARCHAR(250)")] public string Comment {get;set;}