Skip to content
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

[release/8.0] Update FK ElementType when the FK properties change. #34561

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Aug 29, 2024

Fixes #33704

Description

In 8.0.0 we introduced a convention that configures properties as primitive collections, but it should avoid do that for properties that have been configured with a value conversion. However, in some cases a foreign key property can be configured as a primitive collection by the convention before the value conversion configuration is applied to the corresponding primary key. The solution is to enhance the convention logic to also handle this case.

Additionally, for Cosmos we were configuring properties as primitive collections even though they aren't supported.

Customer impact

Affected models fail in model validation with an unhelpful exception. There is a workaround, but it isn't straightforward.

How found

Customer reported

Regression

Yes, from 7.0.x

Testing

Tests added.

Risk

Low. Quirk added.

@AndriySvyryd AndriySvyryd merged commit b2e366b into release/8.0 Sep 3, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue33704 branch September 3, 2024 20:45
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.

2 participants