EntityFrameworkCore.FirebirdSQL icon indicating copy to clipboard operation
EntityFrameworkCore.FirebirdSQL copied to clipboard

Cannot Scaffold if my table hasnt Primary Key

Open Cae2 opened this issue 7 years ago • 1 comments
trafficstars

Hello, I'm trying to scaffold a database who doesnt use Primary Key on its tables.

When I run a dotnet ef dbcontext scaffold I got the following error:

PK '' on table 'NF ' has no columns! PK '' on table 'PRODUTOS_EVENTOS ' has no columns! Unable to identify the primary key for table 'NF '. Unable to generate entity type for table 'NF '. Unable to identify the primary key for table 'PRODUTOS_EVENTOS '. Unable to generate entity type for table 'PRODUTOS_EVENTOS '.

there is something that I can do? (its not my database, so I cannot alter it to add PK on tables)

Thank you!

Cae2 avatar Aug 26 '18 19:08 Cae2

All, well sorry for the delay, I'm going back to work.

ralmsdeveloper avatar Dec 27 '18 23:12 ralmsdeveloper