I am trying to use Entity Framework 5. The first problem was that EF creats tables automatically. I tried to fix it by including
dbModelBuilder.Conventions.Remove<
You can write this code in OnModelCreating method:
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
If you don't want EF to create tables and manage consistency between you model and database just use this at the startup of your application:
Database.SetInitializer<CountryContext>(null);
Using LINQ in EF 6.0:
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
var conventions = new List<PluralizingTableNameConvention>().ToArray();
modelBuilder.Conventions.Remove(conventions);
}