ErikEJ / EFCorePowerTools

Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
MIT License
2.19k stars 297 forks source link

When name of the database project is the same with the table name #2543

Closed maxisam closed 1 month ago

maxisam commented 1 month ago

Provide steps to reproduce a bug

my project name is like

DataAccess.Product

but there is a table name like

Product (mine is actually Products here)

So when generate through CLI, it causes an issues like 'Product' is a namespace but is used like a type

However this is being handled in UI.

in UI, it creates

using Schema = DataAccess.Product.Models.dboSchema;

and access it like Schema.Product

Provide technical details

ErikEJ commented 1 month ago

Please provide a full repo - table CREATE statement and you config file.

Ask you were asked to when you created this issue!

maxisam commented 1 month ago

Sorry, I just throw it out quickly, in case this is a known issue and you can answer it right away. I am still checking the repo and see if there is a settings for this in the CLI, since I think the underlying engine is the same for both. I will reopen it when I add more information