In fact, it depends on how you built your EF model, if you use your constructor, you can specify the required data type for each column (in your case, just install varchar and you're done).
If you use a code-based approach, you should decorate the property that this column represents with the corresponding attribute ( string objects in .NET are always Unicode, so it will display nvarchar by default), just do it (with data annotations, if you use StringAttribute , then split it with the IsUnicode property to false ):
[Column(TypeName = "varchar")] public string YourColumnName { get; set; }
Adriano repetti
source share