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

Document temporal table non AsOf operations with navigations #4857

Open
maumar opened this issue Oct 31, 2024 · 0 comments
Open

Document temporal table non AsOf operations with navigations #4857

maumar opened this issue Oct 31, 2024 · 0 comments
Assignees

Comments

@maumar
Copy link
Contributor

maumar commented Oct 31, 2024

Temporal table works best with AsOf operations - we can translate any query because there is a consistent graph of entities that matches what EF "thinks" entities should be. For other operations (e.g. TemporalAll) we get into all sorts of trouble leading to unexpected results (missing or mismatched rows)

As such, we disabled navigations for non-AsOf operations and we recommend people to manually build the queries they need using joins. These are quite tricky and not intuitive. We should provide some guidance and examples of how it can be done (by converting navigations to N+1 queries or swapping LEFT/INNER JOINS into CROSS JOINS)

Some examples of problems/queries users want to solve that we should consider documenting a solution for:

dotnet/efcore#34384
dotnet/efcore#34978

@maumar maumar self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant