UnitOfWork2 execution info

Posts   
 
    
arek
User
Posts: 6
Joined: 15-Jun-2006
# Posted on: 02-Aug-2006 22:56:38   

I'm using UnitOfWork2 (LLBL 2.0 adapter mode) and I need information about number of rows that has been changed during execution.

All methods where called directy without UnitOfWork2 are returning such information, but with UnitOfWork there is no way to tell how many rows has been changed.

Especialy for UpdateEntitiesDirectly and DeleteEntitiesDirectly return value is ignored inside UnitOfWork2. Even worse one can add action with AddUpdateEntitiesDirectlyCall (or Delete) but there is no way to check what is inside existing unit of work. Fields are private and don't have corresponding properties and classes used to keep info about calls are internal.

What do you sugest? Changing UnitOfWork2.cs on my own doesn't sound like a best idea.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 03-Aug-2006 07:21:44   

I think you can use the UnitOfWork Methods to retreive those info.. Like GetUpdateQueue() & GetInsertQueue() Please refer to the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=4380

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39918
Joined: 17-Aug-2003
# Posted on: 03-Aug-2006 10:45:34   

The functionality you request isn't available for deletes and updates which are done directly, that info isn't aggregated inside the UoW.

I'll add that to the todo list, it's a good suggestion.

Frans Bouma | Lead developer LLBLGen Pro