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/7.0] Store null table name in the model snapshot for TPC abstract types #30275

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

ajcvickers
Copy link
Member

@ajcvickers ajcvickers commented Feb 13, 2023

Port of #30257
Fixes #30058

Description

TPC mapping, new in EF7, has no table mapping for abstract base types. However, this was not being stored in the model snapshot for non-root abstract types, causing repeated erroneous generation of a migration to drop the table.

Customer impact

Repeated, incorrect code to drop a non-existent table on every migration generated. No reasonable workaround.

How found

Customer reported on 7.0.

Regression

No; bug in new feature of EF7.

Testing

New test added for a model snapshot with this kind of model.

Risk

Low; very simple change. And quirked, since that's what we do. :-)

@ajcvickers ajcvickers requested a review from a team February 13, 2023 23:42
@ajcvickers ajcvickers added this to the 7.0.x milestone Feb 13, 2023
@ajcvickers ajcvickers changed the title Store null table name in the model snapshot for TPC abstract types [release/7.0] Store null table name in the model snapshot for TPC abstract types Feb 14, 2023
@leecow leecow modified the milestones: 7.0.x, 7.0.4 Feb 14, 2023
@ajcvickers ajcvickers merged commit 77aac27 into release/7.0 Feb 14, 2023
@ajcvickers ajcvickers deleted the AufWiedersehenPet0213 branch February 14, 2023 18:30
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.

None yet

3 participants