Is there any possible configuration to set database column ordering in entity framework code first approach..?
All of my entity set should have some common fields for ke
Just use:
using System.ComponentModel.DataAnnotations.Schema;
Code:
[DisplayColumn("Name" , Order = 1)]
public int UserName { get; set; }
Notice: column order by default takes a big number so if you ordered only this column it will be first one in the table unless you ordered another column with a lower order number which is in this case : 0