Upgrading from 5.3 to current realease

Posts   
 
    
Posts: 2
Joined: 12-Apr-2024
# Posted on: 12-Apr-2024 20:39:37   

What is the reccomendation for upgrading? Looking at the realese notes for each upgrade, it seems as though an iterative approcch is likey recommended? If so, where/how can I obtain the older versions to go through this process?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 13-Apr-2024 09:16:41   

From which version are migrating? It's in general better to start at the bottom of the Migrating your code (https://www.llblgen.com/Documentation/5.11/LLBLGen%20Pro%20RTF/migratingcode.htm) documentation for the version you're starting from. A lot of the breaking changes might not affect you tho, but some are big, like the move of the csproj file locations in 5.4.

It's not needed to migrate first to a given version e.g. 4.0, make that 100% runnable and then move to v4.1 etc. as that's a lot of work. If you're using adapter, the one thing you have to do is make sure you read the top of the migration document so you know you have to move the csproj files, then generate for v5.11, the latest version on top of your code and start migrating your code using the migration document.

The idea is that you have a license of the version you start from and you migrate to a version you also have a license for. Older versions can be obtained under My Account (after logging in). Each major version requires a specific license. If you have v2.8 now and want to migrate to v5.11, and you want to use every version in between we need to send you a license for each version (which is free of charge for a valid v5 subscription).

Frans Bouma | Lead developer LLBLGen Pro
Posts: 2
Joined: 12-Apr-2024
# Posted on: 06-Dec-2024 00:41:43   

Thank you for your response. I have a question about one of the breaking changes from 5.3 to 5.4

How would I go about testing if "If an entity doesn't have Custom Properties defined, the static property CustomProperties isn't available anymore" I am not even sure where to look. I am working with an old code base that is not documented about how it was designed.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39760
Joined: 17-Aug-2003
# Posted on: 06-Dec-2024 09:33:00   

nameless_underscore wrote:

Thank you for your response. I have a question about one of the breaking changes from 5.3 to 5.4

How would I go about testing if "If an entity doesn't have Custom Properties defined, the static property CustomProperties isn't available anymore" I am not even sure where to look. I am working with an old code base that is not documented about how it was designed.

If your own code uses that static property (e.g. var c = CustomerEntity.CustomProperties; ) and it's no longer generated because the entity doesn't have any custom properties defined, it'll give a compile error as the property CustomProperties isn't generated into the customer class anymore. This isn't that bad tho, most people don't use these anyway.

So to test if you run into this, you compile your code with the newly generated code and if it gives errors of missing 'CustomProperties' properties then you're running into these. If so, it's best to remove the code, OR define a custom property in each entity at least. You can do that in the designer with a plugin that's shipped with the designer

Frans Bouma | Lead developer LLBLGen Pro