It seems that the pluralization function can only be deactivated with the First code. Therefore, the following code does not work:
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
Try this, perhaps with luck:
protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<Option>().ToTable("Option") }
If you need to know which version of the Entity Framework you are using, there are several ways:
- In the project tree "Links" and press F4 ont "EntityFramework".
- Right-click on your project and select "Manage NuGet Packages ...", here you can check the version and update it.
source share