2

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?

allenski
  • 1,652
  • 4
  • 23
  • 39
kranz
  • 599
  • 1
  • 6
  • 23

1 Answers1

3

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

Community
  • 1
  • 1
Joel
  • 647
  • 2
  • 11
  • 22
  • Using DataAnnotation is the answer I was looking for. I don't want to disable pluralization, just be able to override it when i need. – kranz Apr 29 '13 at 19:47