dotnet / dotnet/EntityFramework.Docs

Document temporal table non AsOf operations with navigations

Open
#4,857 0 comments 0 reactions 0 assignees View on GitHub
undocumented-feature
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

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:

https://github.com/dotnet/efcore/issues/34384
https://github.com/dotnet/efcore/issues/34978

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.