Skip to content

[release/8.0] Remove referencing indexes when reconfiguring a property as a navigation#34651

Merged
AndriySvyryd merged 1 commit into
release/8.0from
Issue29997
Oct 2, 2024
Merged

[release/8.0] Remove referencing indexes when reconfiguring a property as a navigation#34651
AndriySvyryd merged 1 commit into
release/8.0from
Issue29997

Conversation

@AndriySvyryd

Copy link
Copy Markdown
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
@AndriySvyryd AndriySvyryd deleted the Issue29997 branch October 2, 2024 18:20
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