I am working with vs2010 entity framework 4.1 I installed some from the nuget installers I use codefirs开发者_运维知识库t 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 .edmx
does not have Pluralize names
set to true
in its properties.
I got headaches with it too.
It's a configurable option: Entity Framework 4.0: Pluralization
精彩评论