Working with Old Generated Code

Posts   
 
    
DZ
User
Posts: 5
Joined: 02-Oct-2012
# Posted on: 03-Oct-2012 18:13:06   

Hi,

I have a legacy product that I need to modify by adding new columns and tables to the database schema. It includes some LLBL generated code as the data access layer. Here is the header from a sample code file:

//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 1.0.2004.2
// Code is generated on: Thursday, October 27, 2005 1:54:13 PM
// Code is generated using templates: C# template set for SqlServer (1.0.2004.2)
// Templates vendor: Solutions Design.
// Templates version: 1.0.2004.2.042205
//////////////////////////////////////////////////////////////

We no longer have the software or license for this version of LLBLGen, so I need to find a way to update it. I downloaded the trial of version 3.5 and generated a new set of code files based on the updated schema to see how that would work. Before purchasing this version I need to look at these issues:

-There are many broken pieces of our custom code due to changes in the generated code, including missing references to things like

CollectionClasses

and

PredicateFactory

. I did some research and found that you can customize the classes generated to some degree, but at least in the case of

PredicateFactory

, it is not even optional anymore. While the new code looks cleaner and better designed, it requires changes to the existing code base. -Such a fundamental change would also require extensive regression testing of the application, even though the proposed change is small.

So I'm looking at options for how to approach this: -suck it up and use the new generated code, modify and test the application as required (this leaves us in the best condition for the future) -find a template, etc for the latest version of LLBLGen to generate code that is compatible with code generated by version 1.0 (this will never be completely compatible) -find and install a copy of LLBLGen version 1.0, if that is still possible -modify the generated code by hand (this seems risky/difficult and leaves us in the same position next time)

I'd like to hear your comments on these options, or others if I've missed a better one.

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 03-Oct-2012 20:05:53   

The first 3 options are available for your choice. If you purchase the current version, we can give access to the older versions as well.

So the option is yours.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 04-Oct-2012 11:24:58   

About the predicate factory, there's a way to re-instate it in v3. V2 ships with it (but disabled by default). We deprecated it back in 2006 I think.

The 'migrate your code' section in the manual for the runtime describes what breaking changes were made during the years for each version.

Frans Bouma | Lead developer LLBLGen Pro
DZ
User
Posts: 5
Joined: 02-Oct-2012
# Posted on: 11-Oct-2012 21:27:46   

I purchased a license and installed it with version 3.5, which works fine. I also downloaded the old version I needed from the customer site, but it won't work with the same license file. how do I get a license for that version?

Aglaia avatar
Aglaia
LLBLGen Pro Team
Posts: 535
Joined: 07-Sep-2003
# Posted on: 12-Oct-2012 09:58:53   

Just email your customer ID to aglaia at llblgen.com and I'll have our system send you a v2.x license.