Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> Working with Old Generated Code
 

Pages: 1
LLBLGen Pro Runtime Framework
Working with Old Generated Code
Page:1/1 

  Print all messages in this thread  
Poster Message
DZ
User



Location:

Joined on:
02-Oct-2012 19:01:49
Posted:
5 posts
# 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:
//////////////////////////////////////////////////////////////
// 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
Code:
CollectionClasses
and
Code:
PredicateFactory
. I did some research and found that you can customize the classes generated to some degree, but at least in the case of
Code:
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!
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14570 posts
# 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.


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37813 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
DZ
User



Location:

Joined on:
02-Oct-2012 19:01:49
Posted:
5 posts
# 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?

  Top
Aglaia
LLBLGen Pro Team



Location:
Scheveningen, The Netherlands
Joined on:
07-Sep-2003 21:16:00
Posted:
534 posts
# 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.
Aglaia Kuipers, The LLBLGen Pro Team

Join the LLBLGen Pro support team!
 
Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.