Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Bugs & Issues> Problem with regenerating the code
 

Pages: 1
Bugs & Issues
Problem with regenerating the code
Page:1/1 

  Print all messages in this thread  
Poster Message
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# 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 ...)
  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14470 posts
# 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?

  Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# Posted on: 21-Sep-2007 14:44:33.  
Hello Walaa,
Yes that produces the same result....
Paul
  Top
daelmo
Support Team



Location:
Guatemala City
Joined on:
28-Nov-2005 23:35:24
Posted:
8060 posts
# 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'ing (articles and code snippets) | linkedin | twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37405 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# 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


  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37405 posts
# 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
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37405 posts
# Posted on: 24-Sep-2007 15:50:34.  
Fixed in next build (24-Sep-2007)

Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# 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
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37405 posts
# 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


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
Pablo
User



Location:
Sneek
Joined on:
21-Mar-2005 01:17:52
Posted:
81 posts
# 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
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.