Problem with regenerating the code

Posts   
 
    
Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 21-Sep-2007 13:16:21   

Hello,

I'm having trouble with getting my objects renamed inside the generated code. I hope someone can come to the rescue!

Here's the scenario I follow: - I rename in the database table name - I use CliRefresher to refresh the catalog. - I use CliGenerator to regenerate the DAL dll. - Visual Studio says to me to Reload the DLL since it has been modified outside the environment.

The result: - The entity is renamed. - The static prefetch member for this entity (on related entities) is not renamed.

I also think this happens with relationship names .. but I did not reproduce that yet ...

Does anyone have any ideas how to get everything properly named, exactly conform the names I use in the database?

Regards, Paul

ps. Using the lates version (2.5 .. both llblgen pro and the sdk ...)

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 21-Sep-2007 14:29:15   

Do you face the same issue if you use the Designer instead of the Command Line tools?

Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 21-Sep-2007 14:44:33   

Hello Walaa, Yes that produces the same result.... Paul

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Sep-2007 09:43:11   

Hola Pablo,

As far as I now there isn't a property that permit auto refresh that. I now exists _SyncMappedElementNamesAfterRefresh _that refreshes entity names but no field on relations or prefetchPaths.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Sep-2007 11:01:58   

The documentation on SyncMappedElementNamesAfterRefresh suggests it should rename the fields mapped onto relations, however it doesn't do this (just tested this). Will look into it.

Frans Bouma | Lead developer LLBLGen Pro
Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 24-Sep-2007 12:36:44   

Thanx people for the responses,

The only option I currently have, to really create a new fresh DAL dll is to delete everything and start all over. That is ... - Delete the project file. - Delete the folder that contains the generated code - Create a new project file - Make the proper settings - Read the catalog - Generate the new dll.

Meanwhile removing the DLL from the Visual Studio solution, closing VS, starting it after generating code and reloading the new code ...

All this, while the CliRefresher and the CliGenerator tools are available and are providing a simple and powerfull means to do a full and complete refresh by one click ... I sure hope that this route will be one that I can use ... I'm sure it will save me tons of time.

Regards,Paul

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Sep-2007 14:11:01   

Pablo wrote:

Thanx people for the responses,

The only option I currently have, to really create a new fresh DAL dll is to delete everything and start all over. That is ... - Delete the project file. - Delete the folder that contains the generated code - Create a new project file - Make the proper settings - Read the catalog - Generate the new dll.

Meanwhile removing the DLL from the Visual Studio solution, closing VS, starting it after generating code and reloading the new code ...

All this, while the CliRefresher and the CliGenerator tools are available and are providing a simple and powerfull means to do a full and complete refresh by one click ... I sure hope that this route will be one that I can use ... I'm sure it will save me tons of time.

Regards,Paul

Don't worry, the docs say the setting should rename the fields mapped onto relations as well, and they're not renamed, so that's a flaw in our code. I'll check how to fix this so it can be included in the next build (released later today)

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Sep-2007 15:50:34   

Fixed in next build (24-Sep-2007)

Frans Bouma | Lead developer LLBLGen Pro
Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 24-Sep-2007 16:22:12   

Fantastic. What can I say. The big SW companies can learn a lot from SD!!

Where can I obtain the latest build?

Regards,Paul

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 24-Sep-2007 18:44:39   

Pablo wrote:

Fantastic. What can I say. The big SW companies can learn a lot from SD!!

Where can I obtain the latest build?

Regards,Paul

FinalBuilder is building it at the moment. simple_smile So expect it to be on the site in an hour or so or less simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Pablo
User
Posts: 81
Joined: 21-Mar-2005
# Posted on: 25-Sep-2007 10:41:13   

Frans, The update indeed is available. Downloaded it and tested it. Works perfect. Thanx! OneClick DAL generation is now working 100% for me! Paul