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

Cannot Scaffold if my table hasnt Primary Key #38

Description

@Cae2

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions