Using asp .net mvc4, I want to have all my tables, views, controllers named in Italian language. Using EF 5 Code First I get table names pluralized with english language rules, and this is bad.

Is there any place where to code custom inflection rules? I usually use Ruby on Rails for web applications, which has a very nice way to deal with this issue. Is there any similar feature in Entity Framework 5?

有帮助吗?

解决方案

Check the answer here to disable pluralization.

How do I singularize my tables in EF Code First?

You can annotate your tables to specify the name also.

Entity Framework CodeFirst table pluralization

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top