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

Having IPreUpdateEventListener & IPreInsertEventListener in EF Core #6535

Closed
VahidN opened this issue Sep 15, 2016 · 1 comment
Closed

Having IPreUpdateEventListener & IPreInsertEventListener in EF Core #6535

VahidN opened this issue Sep 15, 2016 · 1 comment

Comments

@VahidN
Copy link

VahidN commented Sep 15, 2016

It's possible to query the change tracker and do some operations before and after insert/update/delete by overriding the SaveChanges method. but after a while, this method will become unmaintainable. We will have a method with a lot of different responsibilities.
NHibernate has IPreUpdateEventListener & IPreInsertEventListener mechanism to manage it.
Also there are some EF 6.x libraries to simulate it such as:

Do you have any plan to add this functionality to EF Core?

@rowanmiller
Copy link
Contributor

This is covered by #626

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants