This project has moved and is read-only. For the latest updates, please go here.

How to un-pluralize table names

Apr 19, 2015 at 9:21 AM
As far as I can tell, Effort by default pluralizes all tables names ( PERSON -> PERSON__S__ ).

I am using EF Code First without table name pluralization.

So first problem for me is that .csv files must have added s. Thats ok, no problem.

Second problem I can't overcome yet - all DbSets are also puralized. So I can't even access them from my DbContext. For example, I write:
context.PERSON.Where(), but query always returns empty, because in EFFORT DB there is the pluralized version PERSONS.

Is there a config switch or something that could help me overcome this?
May 16, 2015 at 11:27 AM
Effort uses the same table names that is used for creating the real database tables. Furthermore Effort does not even have any capability for changing the table naming process.