just use:
using System.ComponentModel.DataAnnotations.Schema;
The code:
[Column("Name" , Order = 1)] public int UserName { get; set; }
Note: cloumn arder accepts a large number by default, so if you ordered only this column, it will be the first in the table if you did not order another column with a lower serial number, which in this case: 0
noor saif
source share