Poco names are pluralized
See original GitHub issueThe current version of pluralization changes the Poco names with ‘Data’ to ‘Datum’.
ModuleIotData
becomes ModuleIotDatum
ErrorMasterData
becomes ErrorMasterDatum
In previous versions it worked correctly and Data
were at the end of the name.
If i deactivate pluralization, the names are correct but the navigation properties loses their plural.
Devices = new HashSet<Device>();
becomes Device = new HashSet<Device>();
Expectation
The poco names should be the same as the table names and not be pluralized. In my opinion it makes no sense to pluralize the poco names.
The poco User
represents a single User and not multiple of them. But the navigation properties should be pluralized.
Steps to reproduce
- Create a table with
Data
at the end of the name e.g.MasterData
. - Use EF Core Powertools to reverse engineer. Choose your Database and the created table.
- Check ‘Pluralize or singularize generated object names’
- Click ‘OK’
Further technical details
Visual Studio 19 Enterprise: 16.1.3 EF Core Power Tools version: 2.2.63.0 Database engine: Azure Microsoft SQL Server
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:13 (9 by maintainers)
Top GitHub Comments
Is it possible that some options could be added to:
that work independently from each other?
Yes, I switched to the legacy pluralizer so it at least matches my EF 6 data context now.
An example of the Humanizer problem I had are table names ending in POS (point of sale) all drop the S. The legacy pluralizer converts Campus into “Campu”, but I’m used to that bug.