-
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
Re-building relationships can cause annotations to be lost #7674
Comments
Related to #1923 |
had the same issue, it took almost a day trying to figure out why SetPropertyAccessMode doesn't work. |
Thanks @ajcvickers! This one bite me too and I spent 4 days trying to hunt it down, until I finally realized that the Pushing the |
In the code below a shadow FK property is specified when initially building the relationship. An annotation is then put on one of the navigations. The FK is then re-defined to be nullable. This results in the annotation no longer being present on the navigation, presumably because annotations were not copied when the relationship was re-built.
Model before FK is made non-nullable:
Model after FK is made nullable:
The text was updated successfully, but these errors were encountered: