Introduce aggregating TableExpression as implementation detail for multi-table mappings
Open
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
Assessment
This issue has not been assessed yet.