My entity name is \"Contact\" and my table name is \"Contact\". However, the default pluralization support is making EF4 to look for a table named \"Contacts\". Anybody has
Are you simply trying to target a particular table name?
If so, this may be the answer you are looking for:
public class FooDataContext : DbContext
{
public DbSet Contacts { get; set; }
}
protected override void OnModelCreating(System.Data.Entity.ModelConfiguration.ModelBuilder modelBuilder)
{
modelBuilder.Entity().MapSingleType().ToTable("Contact");
}
}
Does this help or did I completely miss the point?