Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Automatically Apply AsNoTracking() When Running Within a TemporalQuery.AsOf() #1

Open
bbrandt opened this issue Dec 19, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@bbrandt
Copy link
Contributor

bbrandt commented Dec 19, 2019

SQL Server Temporal History is immutable, so there is no need for change tracking. Because we are intercepting to switch between historical and current, if we leave off the AsNoTracking(), then the change tracker can get confused and cache historical data as current state data.

@bbrandt bbrandt changed the title Automatically Apply AsNoTracking() When Running Within a TemporalQuery.AsOf() Automatically Apply AsNoTracking() When Running Within a TemporalQuery.AsOf() Dec 19, 2019
@bbrandt bbrandt added the good first issue Good for newcomers label Jan 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant