Skip to content

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
@AndriySvyryd AndriySvyryd deleted the Issue33704 branch September 3, 2024 20:45
@AndriySvyryd AndriySvyryd added this to the 8.0.10 milestone Oct 11, 2024
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