dotnet / dotnet/efcore

Introduce aggregating TableExpression as implementation detail for multi-table mappings

Open
#29,035 0 comments 0 reactions 0 assignees View on GitHub
area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Following TpcTablesExpression for TPT & EntitySplitting which would be replaced by basic object in same way. This would allow us to identify principal table(s) to pull owned data when table sharing more accurately.

Currently we have this code
https://github.com/dotnet/efcore/blob/f20729d20f2912e2cc645f1116f816bf33697a3b/src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs#L2409-L2410

It could match incorrect table if same entity is being joined multiple times in the query and using owned navigations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.