EntityHooks
EntityHooks copied to clipboard
Full control over SaveChanges
This way the inheritors have full control over before and after the call to the SaveChanges of the DbContext happens.I had an issue where i needed to implement audit and i wanted the audit to happen after all the pre save hooks are executed.And there was no way to do it except implementing IDbHookRegistrar myself and coping all the functionality of the DbHookContext.