Skip to content

Throw if an entity type in table-sharing uses TPC#27988

Merged
AndriySvyryd merged 1 commit intomainfrom
Issue3170
May 11, 2022
Merged

Throw if an entity type in table-sharing uses TPC#27988
AndriySvyryd merged 1 commit intomainfrom
Issue3170

Conversation

@AndriySvyryd
Copy link
Member

Don't configure table name for abstract types in TPC that have a corresponding DbSet property
Make ToTable(b => {}) map the entity type to the default table

Fixes #3170
Fixes #27608
Fixes #27945
Fixes #27947

@AndriySvyryd AndriySvyryd requested a review from a team May 10, 2022 02:07
@AndriySvyryd AndriySvyryd changed the title Throw if table-sharing principal is in TPC and has derived types or the dependent doesn't use TPH Throw if an entity type in table-sharing uses TPC May 10, 2022
@smitpatel
Copy link
Contributor

[ConditionalFact]

can remove these attributes


Refers to: test/EFCore.SqlServer.FunctionalTests/Query/TPCRelationshipsQuerySqlServerTest.cs:18 in 6af5d92. [](commit_id = 6af5d92, deletion_comment = False)

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

…he dependent doesn't use TPH

Don't configure table name for abstract types in TPC that have a corresponding DbSet property
Make `ToTable(b => {})` map the entity type to the default table

Fixes #3170
Fixes #27608
Fixes #27945
Fixes #27947
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants