I have a class, and properties like. I am using Entity Framework with Mysql.
After migration using add-migration, it will create an INT(11) column.
But I need VARCHAR because, I need Dept or Credit value.
I tried a lot, but it didn't.
How can I do?
public class trns
{
public trans_type enm_trans_type { get; set; }
}
public enum trans_type {
[Description("Dept")]
Dept,
[Description("Credit")]
Credit
}