public class Person
{
public int PersonID { get; set; }
[Column("NameOfPerson")]
public string PersonName { get; set; }
}
Tells Entity Framework to use a specific column name instead using the name of the property. You can also specify the database data type and the order of the column in table:
[Column("NameOfPerson", TypeName = "varchar", Order = 1)]
public string PersonName { get; set; }