asp.net-mvc-4entity-framework-5pluralize

pluralize table names in non-english language with entity framework 5


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?


Solution

  • 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