You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has there been consideration to using Interceptors to handle the AuditableEntity and Domain Event logic within the ApplicationDbContext SaveChanges override?
I recently had to add some logic during the save operation and moved all of that code into implementations of the SaveChangesInterceptor with unit tests and it worked very well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Has there been consideration to using Interceptors to handle the AuditableEntity and Domain Event logic within the ApplicationDbContext SaveChanges override?
I recently had to add some logic during the save operation and moved all of that code into implementations of the SaveChangesInterceptor with unit tests and it worked very well.
Beta Was this translation helpful? Give feedback.
All reactions