update form 5.3 to 5.5 cannot find adapter.SaveChanges()

Posts   
 
    
ionut
User
Posts: 16
Joined: 28-May-2019
# Posted on: 28-May-2019 01:21:02   

Hello,

I want to update the llbl gen pro from version 5.3 to 5.5 and I used this code:

var check1 = lDataAdapterOrganization.SaveChanges();

where lDataAdapterOrganization is DataAccessAdapter : DataAccessAdapterBase.

Looks like in version 5.5 the method SaveChanges() used to save all the entities changes does not exist anymore.

Can you please tell me what is the equivalent of this in the new version?

Thanks, Ionut

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-May-2019 07:20:28   

Hi Ionut,

Are you sure it's a DataAccessAdapter? Maybe it's a custom method of yours. The thing is that there is no such method (ref...). The only similar thing in the framework is the LLBLGenProODataServiceUpdateProvider.SaveChanges Method (ref...).

I assume it's a compilation error, please double check the error description.

David Elizondo | LLBLGen Support Team
ionut
User
Posts: 16
Joined: 28-May-2019
# Posted on: 28-May-2019 09:41:15   

you are right, it is a custom code! The upgrade from v5.3 to v5.5 was fresh without " __LLBLGENPRO_USER_CODE_REGION_START" and that was the reason of confusion.

Thanks, Ionut

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 29-May-2019 09:26:34   

Please next time use a partial class instead of the user code regions. They still work and we'll keep them for backwards compatibility but the recommended way is to use partial classes as they're a separate file and more visible simple_smile

Frans Bouma | Lead developer LLBLGen Pro
ionut
User
Posts: 16
Joined: 28-May-2019
# Posted on: 30-May-2019 00:34:15   

That is a great idea Otis! I will use a separate partial file classes since it's more visible and also be able to do the upgrade from 5.3 to 5.5 much more easy.