[Table("People")]
public class Person
{
public int PersonID { get; set; }
public string PersonName { get; set; }
}
Tells Entity Framework to use a specific table name instead of generating one (i.e. Person
or Persons
)
We can also specify a schema for the table using [Table] attribute
[Table("People", Schema = "domain")]