Skip to content

Conversation

@smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Sep 17, 2021

…hen navigation is non-null

Resolves #26073

Description
Configuring relationship from keyless entity using HasOne.WithMany API throws exception message even in valid configuration.

Customer Impact
Customer cannot build a perfectly valid model.

How found
Reported by customer in #26703

Test coverage
Added coverage for affected scenario

Regression?
Yes, from 5.0.

Risk
Low. The fix only avoid throwing exception in incorrect case.

@smitpatel smitpatel changed the title ModelBuilding: Check for navigation compatibility with keyless type w… [6.0] ModelBuilding: Check for navigation compatibility with keyless type w… Sep 17, 2021
@smitpatel smitpatel requested a review from Pilchie September 17, 2021 19:58
@smitpatel
Copy link
Contributor Author

cc: @Pilchie for approval.

@Pilchie
Copy link
Member

Pilchie commented Sep 17, 2021

Approved for .NET 6.

@smitpatel smitpatel merged commit a70a174 into release/6.0 Sep 17, 2021
@smitpatel smitpatel deleted the smit/abc branch September 17, 2021 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6.0.0-rc.1.21452.10: Navigations can only target entity types with keys

4 participants