I want my string class field to generate a char(32) column in the database.
I am using Entity Framework 6.1 code first.
[MinLength(32), MaxLength(32)]
public string Code { get; set; }
This code generates a nvarchar(32) in the database.
If I add unicode: false in the DbMigration class (I didn't find an annotation attribute for this), it generates a varchar(32).
Code = c.String(maxLength: 32, unicode: false)
If there a way to generate a char(32) column associated to my string?