question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poco names are pluralized

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Revsolcommented, Jun 20, 2019

Is it possible that some options could be added to:

  • Use the table names as poco names
  • Pluralize navigation properties

that work independently from each other?

0reactions
ryanohscommented, Apr 23, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mapping shared POCO to oData controllers with plural ...
In the metadata, if the name and the URL are both plural, wouldn't the client then assume the type to be plural also?...
Read more >
What Does Poco Mean In Spanish?
The correct form is un poco de + masculine/feminine singular noun. When it comes to plural nouns, you drop the de: unos pocos/unas...
Read more >
Plurals of Names Ending in Vowels (A, E, I, O, U)
To form the plural of a name ending in a, e, i, o, or u, simply add s. An apostrophe is generally unnecessary....
Read more >
masculine plural of poco - Spanish English Dictionary
1, Common, masculine plural of poco · pocos [adj] ...
Read more >
poco - Wiktionary, the free dictionary
Noun Edit. poco m (plural pocos). little (a small amount). Hablo un poco (de) inglés. I speak a little English. a short time,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found