Change folder generated by code generator

Posts   
 
    
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 03-Jan-2011 13:32:37   

hi all,

first a happy new year to all readers.

I am using newest llblgen pro 3.0, ef 4.0, vs 2010, sql server 2008 r2, ms windows 7.

my problem is, that i do not find any switches to change the base folder when generating code.

example: two project are generates -> one called MODEL and one called PERSISTENCE. The projects name as well as the (one) groupname is> SMC my code is always generated into ......\Rootnamespace\SMC\MODEL and .......\Rootnamespace\SMC\Persistence

my question: how can i get rid of ...............\SMC......................

(the reason is, that we have to place the project (model and persistence) in different places, for example ...\Data\Persistence and ...Business\Model).

thank you very much in advance regards chris

Walaa avatar
Walaa
Support Team
Posts: 14946
Joined: 21-Aug-2005
# Posted on: 03-Jan-2011 15:10:11   

These are passed as parameters to the code generation tasks.

  • When generating the code go to the "task queue to execute"
  • Select the task required (the one creating the folder.)
  • Down in the "selected task information" group, go to the "Task Performer Parameters" tab.
  • find the "folder to cretae" ot "destination folder" parameter and modify the value assigned to it as required.
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 03-Jan-2011 16:10:12   

hi walaa,

thank you very much for your answer. but i can not find the place, where i can define to get rid of the folder SMC. everything else is fine, i found how to add additional folder (they are placed above SMC, i found how to define other folder under SMC, etc). and as i wrote, SMC in my case is the project name as well as the (one and only) groupname in the designer. and there are more than one task creating folder.

and the following part of your answer:

"find the "folder to create" of "destination folder" parameter and modify the value assigned to it as required"

i can not understand. there is neither a task "destination folder" nor a task "folder to create". but every task has the parameter "folder to create". but there is only the part und SMC written (for example: Model or Persistence).

But i really have to get rid of the folder SMC.

actually my folder tree (partly) looks like: ..\CompanyName\CompanyName.Data\

i want now add:

..\CompanyName\CompanyName.Data\CompanyName.Data.Model and ..\CompanyName\CompanyName.Data\CompanyName.Data.Persistence

and what i get from llblgen pro 3.0 code generation is:

..\CompanyName\CompanyName.Data\SMC\CompanyName.Data.Model and ..\CompanyName\CompanyName.Data\SMC\CompanyName.Data.Persistence

CompanyName.Data

regards

chris

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jan-2011 04:49:22   

Hi Chris,

I think you are using "AsSeparateProjects" for the GroupUsage value in Project Properties. So please go to Project Properties and find the property GroupUsage and set it to AsVisualGroupingMechanism.

That setting works this way: if set as "AsVisualGroupingMechanism" all elements in the entire project are seen as one project and code generation doesn't create a folder per group. If you choose "AsSeparateProjects", one folder is created per group in code generation.

David Elizondo | LLBLGen Support Team
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 04-Jan-2011 12:36:11   

hi daelmo,

yes, thank you very much.

regards

chris