-
Notifications
You must be signed in to change notification settings - Fork 56
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
Calling TemporalTableAll returns same record for each history entry #504
Comments
Hello @szavoda , Thank you for reporting, We will look at it. Best Regards, Jon |
Hello @szavoda , We indeed have the issue, but it was initially coded this way as the method requires the You will not get longer get the same record issue by using var list2 = context.EntitySimples.AsNoTracking().TemporalTableAll().ToList(); We are currently in discussion to see if we should change the behavior or not. We did it initially this way as we thought it was not our job to decide what should be tracked and what should not be tracked (probably a mistake here). One thing we will also look is if we should simply remove those extensions for recent version of EF Core. Better using their method that our method if they do all what we are doing |
Given a temporal table (azure sql) with 1 primary record and 2 history records. When using the extension "TemporalTableAll()" to get all historical records, the result set returns 3 records, but each record has the same row values (values are same as active record).
Switching to Enitty Framework built in TemporalAll() returns correct record set with value as expected.
The text was updated successfully, but these errors were encountered: