Skip to content

Add SaveChanges events#21862

Merged
ajcvickers merged 1 commit intomainfrom
SaveMeSaveMeOhhhSaveMe0730
Jul 30, 2020
Merged

Add SaveChanges events#21862
ajcvickers merged 1 commit intomainfrom
SaveMeSaveMeOhhhSaveMe0730

Conversation

@ajcvickers
Copy link
Contributor

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