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
Why not just fire the event right before you call SaveChangesAsync at the handler instead of adding it to a list on the entity?
Is this worth the added complexity?
What is this achieving? (I can guess it assures that the events are fired right before SaveChangesAsync. But why?)
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
-
Hey guys
My question is: why?
Why not just fire the event right before you call SaveChangesAsync at the handler instead of adding it to a list on the entity?
Is this worth the added complexity?
What is this achieving? (I can guess it assures that the events are fired right before SaveChangesAsync. But why?)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions