Field _collectionsToSave of UnitOfWork2 class not beeing serialized

Posts   
 
    
arek
User
Posts: 6
Joined: 15-Jun-2006
# Posted on: 21-Jun-2006 23:03:41   

Is this done or purpose? I see that UnitOfWork is the same (LLBL 2.0).

It means that UnitOfWork2 used thru remoting will loose all collections to save during serialization-deserialization process.

Is there an idea that I'm missing behind this?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 21-Jun-2006 23:56:22   

That's done on purpose: often a lot of entities in a uow aren't saved or are there only because related entities are saved. When a uow is serialized, the save queues are calculated first, and only those entities are serialized. The rest isn't. This makes using a uow in remoting scenario's much more efficient.

Frans Bouma | Lead developer LLBLGen Pro
arek
User
Posts: 6
Joined: 15-Jun-2006
# Posted on: 22-Jun-2006 14:49:50   

I missed the call to ConstructSaveProcessQueues from serializationflushed Cool.