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

Introduce aggregating TableExpression as implementation detail for multi-table mappings #29035

Open
smitpatel opened this issue Sep 9, 2022 · 0 comments

Comments

@smitpatel
Copy link
Contributor

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

var t = (TableExpression)UnwrapJoinExpression(e);
return t.Name == table.Name && t.Schema == table.Schema;

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants