DataScope when in Client/Server setup

Posts   
 
    
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 26-Mar-2021 18:36:12   

With 5.7.2 Adapter.

Is the DataScope suitable for client/server scenarios? I want to pass, through FastSerializer, a UnitOfWork2 to the server, but I don't see how to get that from a DataScope or IUnitOfWorkCore.

Thanks,

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39590
Joined: 17-Aug-2003
# Posted on: 27-Mar-2021 10:26:46   

Please see: https://www.llblgen.com/Documentation/5.8/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/gencode_datascopes.htm#commiting-changes

You should call a specific method (CommitChanges(Func<IUnitOfWorkCore, bool>)) which will return a Unit of work object which you can pass to a service

Frans Bouma | Lead developer LLBLGen Pro
yowl
User
Posts: 266
Joined: 11-Feb-2008
# Posted on: 27-Mar-2021 16:18:55   

Sorry, I didnt' read enough. RTFM.