-
Notifications
You must be signed in to change notification settings - Fork 53
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
Handle primary keys not defined in SQL #8
Comments
Hi @JeanCollas, Not defining a primary key in a class for EF Core would be caught when EF Core tries to build its model of the database. I don't think this a logging issue or an issue with the EfCore.TestSupport library. |
Actually I had Id keys missing on tables, the site runs well, but the script TestSupport crashes. |
OK, now I understand a bit better. When you say that
Do you think there is a bug in EfCore.TestSupport? If so, in what area? |
Yes, you may try it by just temporary removing one primary key in the SQL. |
Thanks for the feedback - that make sense. I'm quite busy at the moment so I won't fix this at the moment. I will leave this issue open. |
hi @JeanCollas, I have just released EfCore.TestSupport 1.5.2. In this I filter out DbQuery types, which was what caused the "no primary key" exception. |
When primary key is not defined in SQL DB, many null exceptions are thrown instead of logging the error.
The text was updated successfully, but these errors were encountered: