AddNewElementsAfterRefresh

Posts   
 
    
morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 14-Jan-2009 13:18:42   

I'm new to LLBLGen (switching from RapTier).

I using an automated build system to refresh and rebuild the dataaccess layer (DAL) by:

1) first refreshing: "CliRefresher.exe" 0 "C:\LLBL GEN\InstoreChamp.lgp"

2) next rebuilding: "CliGenerator.exe" "C:\LLBL GEN\InstoreChamp.lgp" "C:\Visual Studio 2008\Projects\NSA\InStoreChamp.DLL" 0

3) compiling DAL solution

4) copying DAL dll files to my VS2008 solution.

This all works fine. However, new database objects are not automatically included during steps 1 og 2 despite having set the project's AddNewElementsAfterRefresh property to true.

What am I doing wrong?

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 14-Jan-2009 14:46:31   

new database objects are not automatically included during steps 1 og 2

So if you open the lgp file in the Designer, you don't see new Entities added to the Entities list, right?

despite having set the project's AddNewElementsAfterRefresh property to true.

Are you sure this has been set in the Project Properties? Coz you might have set it in the User Preferences thinking it would affect the current Project Properties.

Which LLBLGen Pro version (Designer release date), are you using?

It's also worth to mention the followin old thread, that was discussing a similar issue, only it was in the code generation part. http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=5871

morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 15-Jan-2009 00:59:37   

So if you open the lgp file in the Designer, you don't see new Entities added to the Entities list, right?

Upon opening the designer I dont see then. However, when I refresh catalogues new objects are added automatically.

Are you sure this has been set in the Project Properties? Coz you might have set it in the User Preferences thinking it would affect the current Project Properties.

Yes, its a project specific setting. Project -> Preferences

Which LLBLGen Pro version (Designer release date), are you using?

2.6

From the SDK (LLBLGenProSDK_1208200sunglasses I've build the two projects: "CliRefresher" and "CommandLineGenerator" and am using "CliRefresher.exe" and "CliGenerator.exe" to refresh the project and next generate code.

I've setup a "Automated build studio" script to call CliRefresher.exe and CliGenerator.exe. The problem is that new objects are not automatically added in this automated process

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 15-Jan-2009 06:47:45   

morten71 wrote:

Yes, its a project specific setting. Project -> Preferences

As a matter of fact (AddNewElementsAfterRefresh), the setting must be set at Global Preferences (File -> Preferences) as stated in Readme.txt:

Readme.txt wrote:

The refresh will be unattended and will use settings set in the preferences for the running user, found in C:\document and settings\username\Application Data\LLBLGen Pro\preferences.xml.

So, please set the property at File->Preferenes, or modify the CommandLineRefresher (Engine.cs:Ln175).

David Elizondo | LLBLGen Support Team
morten71
User
Posts: 80
Joined: 13-Jan-2009
# Posted on: 16-Jan-2009 09:34:15   

daelmo wrote:

morten71 wrote:

Yes, its a project specific setting. Project -> Preferences

As a matter of fact (AddNewElementsAfterRefresh), the setting must be set at Global Preferences (File -> Preferences) as stated in Readme.txt:

Readme.txt wrote:

The refresh will be unattended and will use settings set in the preferences for the running user, found in C:\document and settings\username\Application Data\LLBLGen Pro\preferences.xml.

So, please set the property at File->Preferenes, or modify the CommandLineRefresher (Engine.cs:Ln175).

Hi daelmo thanks for the info. Setting the File->Preferenes indeed have the desired consequences