Alter order repository to pass along the IOrderGroup to events

Vote:
 

The DefaultOrderRepository triggers events through the IOrderRepositoryCallback interface but that interface only takes in an OrderReference, there is no reason why it couldn't take in the IOrderGroup.

I am not sure what the OrderReference can practicly be used for, if we load the IOrderGroup from it again we won't get the object as it looked when the event was triggered (which of course makes OnUpdating and OnDeleted very strange indeed).

I can not see how the IOrderRepositoryCallback can be used as it is today, we will have to decorate the entire DefaultOrderRepository and trigger our own events. cry

#176599
Mar 22, 2017 16:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.