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

[5.0.1] Fix issues with property called FooId on base type Foo in TPT #23112

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

AndriySvyryd
Copy link
Member

Fixes #23092

Description

The fix does the following:

  • Don't discover FK properties for an identifying FK created by convention
  • Silently ignore inherited properties in TPT in SqlServerIndexConvention instead of throwing an exception

Customer Impact

Currently when there's property with name in form of FooId on base type named Foo in a TPT hierarchy an exception is thrown when a convention is applied. The workaround is non-obvious and might not work when there are multiple types with this pattern.

How found

Reported by user on RC2

Test coverage

This PR includes tests for the affected scenario.

Regression?

No, this only affects TPT - a new feature in 5.0

Risk

Low. The fix only affects models using TPT.

@ajcvickers ajcvickers added this to the 5.0.x milestone Oct 28, 2020
@ajcvickers ajcvickers requested a review from a team October 28, 2020 22:15
@ajcvickers
Copy link
Member

@dotnet/efteam In the past we would have quirked this for safety. Should we continue to do that by default going forward?

@AndriySvyryd
Copy link
Member Author

@ajcvickers Yes, but I want to do it in a separate commit to make the merging to main easier

@leecow leecow modified the milestones: 5.0.x, 5.0.1 Nov 3, 2020
@ajcvickers
Copy link
Member

Approved by Tactics for 5.0.1.

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.

4 participants