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

Is there anything like IPostLoadEventListener in Entity Framework Core #16507

Closed
mrtn-t opened this issue Jul 8, 2019 · 1 comment
Closed

Comments

@mrtn-t
Copy link

mrtn-t commented Jul 8, 2019

I'm moving quite big solution from NHibernate to Entity Framework Core 2.2. Existing solution is using DDD with all BL in Domain models. That business logic is heavily dependent on some objects, which are added to models in custom PostLoadListener, which is registered in Nhibernate Configuration and is triggered each time an Entity is loaded from DB.

I can't find nothing similar in EF. Is there any way in EF to register some custom code (like event handler) which would be triggered every time some entity is read from DB?

@ajcvickers
Copy link
Member

Duplicate of #15911

@ajcvickers ajcvickers marked this as a duplicate of #15911 Jul 8, 2019
@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

2 participants