Forum:  Bugs & Issues

Thread:  Problem with regenerating the code


Pablo (User)   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 (Support Team)   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)   Posted on: 21-Sep-2007 14:44:33.
Hello Walaa,
Yes that produces the same result....
Paul
daelmo (Support Team)   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.


Otis (LLBLGen Pro Team)   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.
Pablo (User)   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 (LLBLGen Pro Team)   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)
Otis (LLBLGen Pro Team)   Posted on: 24-Sep-2007 15:50:34.
Fixed in next build (24-Sep-2007)

Pablo (User)   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 (LLBLGen Pro Team)   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. Regular Smiley So expect it to be on the site in an hour or so or less Regular Smiley


Pablo (User)   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