You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to enable recording of added entities as described in the README. Unfortunately it's not working.
In the code of AutoHistory there is an extension method called AddedHistory which seems to do the trick but this method is not called at all in the class DbContextExtensions
EF Core version: 5.0.11
AutoHistory version: 5.0.8
I think this issue can be quickly resolved with the next change:
On the "DbContextExtensions.cs" (AutoHistory/src/Microsoft.EntityFrameworkCore.AutoHistory/Extensions/) When the function "EnsureAutoHistory" (public static void EnsureAutoHistory(this DbContext context, Func createHistoryFactory)) is executed, every entry runs "entry.AutoHistory(createHistoryFactory)" but they should be "entry.AddedHistory(createHistoryFactory)"
I tried to enable recording of added entities as described in the README. Unfortunately it's not working.
In the code of AutoHistory there is an extension method called
AddedHistory
which seems to do the trick but this method is not called at all in the classDbContextExtensions
EF Core version: 5.0.11
AutoHistory version: 5.0.8
Introduced by https://github.com/Arch/AutoHistory/pull/61/files
The text was updated successfully, but these errors were encountered: