You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database I'm using has lots of tables with capitalized letters, due to abbreviations (like "MECMeter" and "MECModel" and "MECEnergy"). Also, certain columns I need to have renamed when their Entity version is created. Using EF Core Power Tools, I have not been able to both:
Import the table names capitalized exactly as they are on the database (instead of just "Mecmeter"), AND
Have EF Core Power Tools rename certain columns (e.g., rename MECMeter's "Value" column to be "RawValue").
To be clear, I can do one OR the other in the above 2 bullets.
The only way I have found to get the tables names to come in with their original capitalization, is to enable "Use table and column names directly from the database". (If I don't do that, then I get "Mecmeter", "Mecmodel", "Mecenergy", etc.). But once I enable that, then the ability to F2 on a column name and change it (e.g., from "Value" to "RawValue") no longer actually impacts anything.
I'm attempting to come from EF6, so I've also enabled "Pluralize singular generated object names (English)" and "Use EF6 pluralizer".
Provide steps to reproduce
Create a table with multiple capitalized characters, like "MECMeter".
Add a column to the table, like "Value"
Use EF Core Power Tools to reverse engineer:
a. Use the F2 feature to rename "Value" to "RawValue"
b. Enable "Pluralize singular generated object names (English)" and "Use EF6 pluralizer".
c. Generate the Entity files. Note that results are fine EXCEPT that the class is called "Mecmeter"
Enabling "Use table and column names directly from the database" fixes the class name problem, but then it no longer respects the renaming of the column name.
Provide technical details
EF Core version in use: EF Core 6
Is Handlebars used: no
Is T4 used: no
Is .dacpac used: no
EF Core Power Tools version: 2.5.1
Database engine: SQL Server (database has compatibility set to 2012, server itself is version 13.0.7016.1)
Visual Studio version: Visual Studio 2022 (17.4.2)