Modifying existing code that I've never seen before.

Posts   
 
    
salus
User
Posts: 2
Joined: 14-Jun-2007
# Posted on: 14-Jun-2007 17:40:01   

Yesterday, I was handed a new project at work. We have a client who has an existing website that was built elsewhere and a couple years ago at least. It's in C# and the data access tier was generated with LLBLGen Pro. They need some new things added to the site which means modifying the existing database. Now, I've never used this tool before and was wondering what would be a better idea: modifying the existing code manually? Or regenerating everything and trying to patch it into the existing site? I also don't know what version of LLBLGen it was generated with and was wondering how I can find that out. Keep in mind, I'm completely new to this product...

salus
User
Posts: 2
Joined: 14-Jun-2007
# Posted on: 14-Jun-2007 22:20:37   

Is my post too vague? I just want to know how complex it will be to regenerate the code with new DB fields and then plug it back into the existing site.

arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 14-Jun-2007 22:41:48   

I've never had a problem refreshing a llblgen project with changes to a database, regenerating the code and proceeding to make changes to my code base, testing the code and publishing a new version. Of course your experience may vary, depending on the complexity of the code base, the severity of the changes to the database schema, and your skill level.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 15-Jun-2007 09:24:57   

I also don't know what version of LLBLGen it was generated with and was wondering how I can find that out

Open any of the generated code files, the version should be written on topof the file, in the header comment. You should find something like the following:

//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 1.0.2004.2
// Code is generated on: 
// Code is generated using templates: C# template set for SqlServer (1.0.2004.2)
// Templates vendor: Solutions Design.
// Templates version: 1.0.2004.2.071205
//////////////////////////////////////////////////////////////

I always re-generate the code against database changes, and it's always a smooth experience. simple_smile

luciusism
User
Posts: 119
Joined: 02-Jun-2007
# Posted on: 17-Jun-2007 04:33:08   

yup, I think that's the point w/ llblgen. Update the db schema and then refresh catalog in LL.