I am working with vs2010 entity framework 4.1 I installed some from the nuget installers
I use codefirst on an existing database. (dutch database)
If I use in my models derived from :DbContext
public DbSet<Klant> Klant { get; set; }
The error : Invalid object name
‘dbo.Klants’
I don’t have a table “klants” but “klant”
If I change the table name that ends on a “s” no problem, but I can’t change this. It’s is used by other programs as well.
Does someone else has this problem??
What can I do???:?
Cheers
Check that your
.edmxdoes not havePluralize namesset totruein its properties.I got headaches with it too.