Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing HasKey() for one table #1256

Closed
TimKras opened this issue Jan 22, 2022 · 4 comments
Closed

Missing HasKey() for one table #1256

TimKras opened this issue Jan 22, 2022 · 4 comments
Labels
question Further information is requested

Comments

@TimKras
Copy link

TimKras commented Jan 22, 2022

We have table with a PK:
image

The PK column is also 'renamed' (to preserve de uppercase of ID) [not sure if this is relevant]
image

But in the modelbuilder there is no HasKey() record.
image

There should be one, because the name of de PK is not TableName+Id.

This is resulting in a runtime error. Fixed it temporary in the OnModelCreatingPartial method.

@ErikEJ
Copy link
Owner

ErikEJ commented Jan 22, 2022

Are you using Handlebars?

@ErikEJ
Copy link
Owner

ErikEJ commented Jan 22, 2022

Duplicate of #1250 ?

@TimKras
Copy link
Author

TimKras commented Jan 22, 2022

Indeed duplicate of #1250

@ErikEJ ErikEJ closed this as completed Jan 22, 2022
ErikEJ added a commit that referenced this issue Jan 23, 2022
@ErikEJ
Copy link
Owner

ErikEJ commented Jan 23, 2022

Fixed in latest daily

@ErikEJ ErikEJ added the question Further information is requested label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants