开发者

Strange Database table must end on a s

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

Strange Database table must end on a s

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜