Question

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?

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top