[maliming] said: hi
ABP soft delete actual do a update operator. So your
OnDeletewon't be called.You can add an event handler
EntityUpdatedEventData<IdentityUser>and check ifIsDeletedis true or false.Thanks.
Hi,
Thanks for your response on this. We'll look into these options.
Thanks.
Thanks for the clarification.
In our case, the Manager is deleted through the built-in Identity Management → Users page (i.e., the default user deletion flow provided by ABP).
Given that, how can we customize this flow so we can implement the following approach?
Override/customize the user deletion process in our application/domain service and explicitly update dependent entities (e.g., set Employee.ManagerId = null) before or after the user is soft-deleted.
What is the recommended way in ABP to hook into or override the built-in user deletion logic used by the Identity Management module so we can safely apply our custom logic when a user is deleted from the UI?