I need to turn off alphabetic ordering in code first.
Here is my class simplified
public class Person
{
[Key,Column("PersonId")]
public int Id { get; set; }
[MaxLength(50)]
public string PersonName{ get; set; }
public DateTime? JoinDate{ get; set; }
public int? Gender{ get; set; }
}
and when I run the commands to generate the database
dnx ef migrations add InitialMigration
dnx ef database update
The database columns apart from the primary key generates in alphabetic order when I view it in design mode in SQL Server 2012.
How do I force it to create the columns in sequential order as it appears in the class.
I had a look on github and could only find this issue which doesn't explain how to turn it off.