I tried to change the table and column names of my Employee entity by accessing the Table("") and Column("") attributes of its classmap in fluent Nhibernate.
public class EmployeeMap : ClassMap<Employee>
{
public EmployeeMap()
{
Table("Employees");
Id(x => x.Id);
Map(x => x.FirstName)
.Column("EmpFirstName");
Map(x => x.LastName);
.Column("EmpLastName")
References(x => x.Store);
}
}
But instead of having the names I specified, the table and column names that appeared in my Postgresql db are all in lower case i.e. Employees -> employees and EmpFirstName -> empfirstname.
How can I set my table and column names to have the exact letter cases that I specified in my employee mapping?
Thanks, Mark