I have this setting in my model:
[StringLength(250)] public string Comment { get; set; }
to set the maximum length to 250 in the database.
However, it is set as nvarchar (250) when the database person was expecting varchar (250).
Can someone please tell me how to set it as varchar from model, not nvarchar?
entity-framework
AnonyMouse Sep 08 2018-11-11T00: 00Z
source share