UnitOfWork post operation info

Posts   
 
    
khorvat avatar
khorvat
User
Posts: 65
Joined: 17-Feb-2011
# Posted on: 16-Feb-2016 18:23:38   

Is there a way to get result of delete,update or insert after uow has been committed?

I need a callback or someting for al of these operation for every entity in uow.

I saw uow has postdelete callback, what about update and insert? If any of the entities fail with the operation how can i know which one failed?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39765
Joined: 17-Aug-2003
# Posted on: 17-Feb-2016 12:36:17   

you should do that on the adapter you pass in: the OnSaveEntity and OnSaveEntityComplete methods are called for each persisted entity.

Frans Bouma | Lead developer LLBLGen Pro
khorvat avatar
khorvat
User
Posts: 65
Joined: 17-Feb-2011
# Posted on: 17-Feb-2016 12:52:40   

Ok, thanks I'll try to implement this for all mentioned operations.