generating Adapter and SelfServicing code at the same time

Posts   
 
    
klokan
User
Posts: 9
Joined: 29-Mar-2015
# Posted on: 15-Jun-2017 12:32:55   

Hi,

I'm using the newest LLBLGen Pro 5.2.1.

I have one DB that is used by two projects inside a same solution, one project needs Adapter and other one needs SelfServicing.

Is it possible to have two code generation tasks in one LLBLGen project, one Adapter and one SelfServicing, generating code in separate folders so I can use them both in my solution?

For now I see two possible solutions:

1) to have two different LLBLGen projects that are working with same DB but have different code generation tasks

2) to generate Adapter, then change settings to SelfServicing and change output folder, then generate SelfServicing, then change settings back to Adapter and to previous output folder

None of that is not convenient, especially the 1), because when I update the DB, i need to have two LLBLGen instances with two projects, need to refetch them both, to generate them both, if I do some designer changes I need to do them in both projects (twice)... 2) is also not very nice. simple_smile

Of course, it might be that I just couldn't find the right option.

Thank you.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 15-Jun-2017 19:47:17   

I can understand why a project might need Adapter, but why if you are already using Adapter you need to use SelfServicing for the other project.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 15-Jun-2017 22:05:32   

If you use different namespaces you can do that, but I agree with Walaa, why would you want to?

You could generate on the command line, using the cli generator. So create / update your project in the designer, then use a batch file to generate both adapter and selfservicing code. See: https://www.llblgen.com/Documentation/5.2/Designer/Functionality%20Reference/CommandLineTools.htm

Frans Bouma | Lead developer LLBLGen Pro
klokan
User
Posts: 9
Joined: 29-Mar-2015
# Posted on: 16-Jun-2017 12:10:07   

I need it because project that uses SelfServicing is older project and transferring it to the Adapter would take too much time, and it wouldn't be beneficial to the user in any way.

I'll look into command line tool, thx. Although I believe it would be much easier if one could just have the possibility to add tasks in the designer. But obviously not many people need this. simple_smile

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 17-Jun-2017 08:17:57   

klokan wrote:

I'll look into command line tool, thx. Although I believe it would be much easier if one could just have the possibility to add tasks in the designer. But obviously not many people need this. simple_smile

Yes, it's very odd indeed. I thin the command line would do it just right in this case.

David Elizondo | LLBLGen Support Team