Skip to content
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

Add SaveChanges events #21862

Merged
merged 1 commit into from Jul 30, 2020
Merged

Add SaveChanges events #21862

merged 1 commit into from Jul 30, 2020

Conversation

ajcvickers
Copy link
Member

Fixes #15910

I realized that the interceptor, while powerful, is hard to attach to without changing the context configuration. Therefore, this PR adds simple .NET events that can easily be attached to from outside the code that defines the context.

Also, fix to call the SaveChanges failed interceptor when the failure is an optimistic concurrency exception.

Fixes #15910

I realized that the interceptor, while powerful, is hard to attach to without changing the context configuration. Therefore, this PR adds simple .NET events that can easily be attached to from outside the code that defines the context.

Also, fix to call the SaveChanges failed interceptor when the failure is an optimistic concurrency exception.
@ajcvickers ajcvickers requested a review from a team July 30, 2020 20:25
@ajcvickers ajcvickers merged commit eaefa43 into main Jul 30, 2020
@ajcvickers ajcvickers deleted the SaveMeSaveMeOhhhSaveMe0730 branch July 30, 2020 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement events for before and after SaveChanges
2 participants