In Entity Framework 6 Code First, is there a way (perhaps via Data Annotations or Fluent API) so that the database generated by Migrations has lower case column names, even though my model classes have Pascal Casing properties?
I.e. This class:
public class Person
{
public int PersonId { get; set; }
public string FirstName { get; set; }
public string Surname { get; set; }
}
should map to this table (i.e. migrations should generate this table):
person
person
firstname
surname
or even something like this would be nice:
person
person_id
first_name
surname
P.S. I am working with a MySQL database... Thanks