-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Work item for entity lifecycle hooks #15858
Comments
23 tasks
Would it be better to replace the events with virtual methods, such as |
@weitzhandler: Not really. See this for reasons |
For those who came here via SEO: because I needed this functionality myself, I created my own package with lifecycle hooks. You can download it via NuGet. Full docs are available on the Github page of the project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a work-item issue emerging from the parent discussion issue which already captures the community demand/severity. We'd like to regain functionality that existed in EF 6 but has been missing in EF Core.
EF Core should have the following events
ObjectMaterialized
: An event fired when the raw data read from the database is filled into the entity object. As seen in EF 6 here.SavingChanges
: An event fired when the entity object is just about to be written to the database. As seen in EF 6 here.SavedChanges
: An event fired after theSavingChanges
operation has completed (successfully or otherwise)The text was updated successfully, but these errors were encountered: