Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PluralizationService returns "Respons" as singular form of "Responses" #2506

Closed
nefcanto opened this issue Jun 30, 2015 · 5 comments

Comments

Projects
None yet
4 participants
@nefcanto
Copy link

commented Jun 30, 2015

This is the code:

System.Data.Entity.Design.PluralizationServices.PluralizationService.CreateService(System.Globalization.CultureInfo.CreateSpecificCulture("en-US")).Singularize("Responses");

the result is: "Respons"

@rowanmiller

This comment has been minimized.

Copy link
Member

commented Jul 14, 2015

The pluralization service is removed in EF7. We aren't taking changes to it for EF6 since changes can break existing models.

@divega

This comment has been minimized.

Copy link
Member

commented Jul 14, 2015

Just to add to what @rowanmiller said, in EF6 you can customize the pluralization service to fix any words. Here is some example code:

http://stackoverflow.com/questions/17471391/how-to-customize-the-pluralization-ef6

Note that this does not help when the EF Designer automatically singularizes table names to produce entity types, but those can be manually edited in the designer after the model is created.

@weitzhandler

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2015

@divega @rowanmiller Is the pluralization service still provided with DNX/Core as part of an external package or elsewhere?

@rowanmiller

This comment has been minimized.

Copy link
Member

commented Aug 3, 2015

@weitzhandler no, the pluralization service was just an EF component and it's not something we are pulling forwards. You could always copy the code from the EF6 code base if you want since the license is very permissive.

@weitzhandler

This comment has been minimized.

Copy link
Contributor

commented Aug 13, 2015

@rowanmiller @divega
I've discovered someone already worked on that before:
https://github.com/eduaquiles/PluralizationService

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.