Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Cannot Scaffold if my table hasnt Primary Key #38

Open
Cae2 opened this issue Aug 26, 2018 · 1 comment
Open

Cannot Scaffold if my table hasnt Primary Key #38

Cae2 opened this issue Aug 26, 2018 · 1 comment
Assignees

Comments

@Cae2
Copy link

Cae2 commented Aug 26, 2018

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!

@ralmsdeveloper ralmsdeveloper self-assigned this Dec 27, 2018
@ralmsdeveloper
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants