Skip to content

Conversation

AndriySvyryd
Copy link
Member

Fixes #29997
Port of #34640

Description

When a property is reconfigured as a navigation the referencing objects such as indexes, keys and foreign keys are not removed beforehand leading to an exception.

Customer impact

For models where a navigation is referenced by data annotations an exception is thrown during model building. A workaround is to ignore the property before configuring it as a navigation.

How found

Multiple customer reports.

Regression

Yes. From 6.0.x

Testing

Test added.

Risk

Low.

@AndriySvyryd AndriySvyryd added this to the 8.0.11 milestone Sep 14, 2024
@AndriySvyryd AndriySvyryd merged commit 43718a7 into release/8.0 Oct 2, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue29997 branch October 2, 2024 18:20
This was referenced Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants