Code generation: add my own files to the LLBLgen project

Posts   
 
    
kingalef
User
Posts: 14
Joined: 10-Jul-2008
# Posted on: 05-Feb-2009 21:41:42   

Hi, how can I have LLBLGen add some files to the project it creates? Specifically, say I get a SelfServicing module that accesses 5 tables and I have my own ServiceObject that uses those DAOs to populate some business objects that I then send to a WCF client. I'd like these service classes to be part of the DAO assembly LLBLGen creates and not to have to re-add them to the project everytime I regenerate the LLBLGen project. Is there a way to add such "user defined" files to the project?

Thanks a lot

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 06-Feb-2009 10:24:41   

Just make sure the LLBLGen Pro Designer's Project Property CleanUpVsNetProjects is set to false. This way your file won't be deleted when re-generating.

CleanUpVsNetProjects When set to true, the VS.NET project file task performer will first remove all file references for files from an existing VS.NET project file, before adding the files generated. For VS.NET 2005 projects, it will remove all files generated by LLBLGen Pro, as these are marked with a Generator tag.

kingalef
User
Posts: 14
Joined: 10-Jul-2008
# Posted on: 06-Feb-2009 18:50:55   

I'll try. Thanks a lot!