Skip to content

Commit

Permalink
Reset events when Dbcontext is reset asynchronously
Browse files Browse the repository at this point in the history
Fixes #23108
  • Loading branch information
roji committed Oct 27, 2020
1 parent a302bac commit c7a6168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EFCore/DbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ async Task IResettableService.ResetStateAsync(CancellationToken cancellationToke
await service.ResetStateAsync(cancellationToken).ConfigureAwait(false);
}

SavingChanges = null;
SavedChanges = null;
SaveChangesFailed = null;

_disposed = true;
}

Expand Down

0 comments on commit c7a6168

Please sign in to comment.