I came across this neat feature: How to Add Table Prefix In Entity Framework Code First Globally?
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
//prefix "PE" on table name
modelBuilder.Types().Configure(entity => entity.ToTable("PE" + entity.ClrType.Name));
}
But this loses the pluralisation functionality which I want. I can't just append "s"
because a type name like "puppy" should pluralise to "puppies" not "puppys".