-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Warn when uniquifying an FK column name #20435
Labels
area-conventions
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Milestone
Comments
Thank you I really appreciate! |
I agree, would be really useful, since I was hit by "SomeId1" a few times, as well. |
Discussed with the team:
|
Ok thank you!
*Anthony Giretti*
*Blogger, Speaker | MVP, MCSD*
*m:* +1 514 557 1380 <+1+514+557+1380>
*s: *anthonygiretti.com
*e: *[email protected]
Le ven. 27 mars 2020 à 15:07, Arthur Vickers <[email protected]> a
écrit :
… Discussed with the team:
- We currently have debug-level logging for this. We could promote
this to warning, but sometimes the property will be removed later in the
model build process as more information is gathered and conventions are
re-run.
- We could therefore instead keep track of when we're doing this, but
then only warn if the synthesized properties remain in the final model.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFBX2J2ATCP7W6UHJPHJEZLRJT2ONANCNFSM4LVC4DWA>
.
|
73 tasks
ajcvickers
added
type-bug
type-enhancement
and removed
type-enhancement
type-bug
labels
Feb 20, 2021
ajcvickers
added a commit
that referenced
this issue
Aug 10, 2021
ajcvickers
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Aug 10, 2021
ajcvickers
added a commit
that referenced
this issue
Aug 11, 2021
ajcvickers
added a commit
that referenced
this issue
Aug 12, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-conventions
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Consider the case where there is a candidate FK property by name in the dependent CLR type, but it doesn't work for the FK for some other reason--commonly, that the type of the property is not compatible with the type of the PK property. In this case we currently create a shadow property with a uniquified name--e.g.
BlogId1
. I assert that this is almost always not what is wanted. We should consider making this a warning, or perhaps even an error by default.The text was updated successfully, but these errors were encountered: