Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EF singularizes "Changes" to "Chanx"

I have a Table in my data model which is called ContractProductChanges. In the EF data model wizard, I chose to pluralize or singularize object names. After finishing the wizard it names the entity ContractProductChanx. But ContractProductChange makes more sense imho, so I have to change that manually.

I'm in early development phase, consequently I update the .edmx file a lot. Is there a way to override the singularization rules?

like image 623
Kuckucksei Avatar asked Feb 23 '11 10:02

Kuckucksei


1 Answers

I know this is old, but I'm still finding this now. The only reason I could possibly think of is the word "Phalanx" which becomes plural as "Phalanages". I can't think of any other words that are like this, so it defaults to a very odd default.

Note that is does this with any word that ends with anges, inges or ynges including ranges, charges, hinges, or many other words.

I have logged an issue in entity framework as I think this behaviour is very odd, and causes quite a bit of confusion (even if it is easy to fix).

like image 143
mirhagk Avatar answered Oct 31 '22 08:10

mirhagk