Minor annoyance: LLBGenProDataSource not refreshing

Posts   
 
    
M6rk
User
Posts: 37
Joined: 29-Sep-2004
# Posted on: 31-Jan-2007 19:32:17   

To be filed under "if it hurts then don't do it".

Summary: Addition of Fields map on related fields does not get picked up until shutdown and restart VS.

(I have my VS 2K5, LLBLGenPro designer, SQL Query analyzer all up and running and hop around quite a bit.)

  1. Create solution.
  2. Create VS web project.
  3. Create VS dal project.
  4. Generate dal using LLBGen pro
  5. Create web page, use LLBLGenProDataSource and a collection class.
  6. Using LLBGEN designer, map column in the collecion entity to something.
  7. Regen dal.
  8. Rebuild solution.
  9. See that the mapped column is not available using VS ->gridview -> add new column.
  10. Close VS solution
  11. Open VS solution, see that the column is now available.

One other really minor quirk: The option to enable sorting is not available on the GridView designer when referencing a LLBLGenProDataSource/Entity collection, although it can be set via Grid property sheet or programatically. Not sure if this is due to something beyond LLBLGenProDataSource's control (no pun intended). Just thought i would mention it.

I really love this product, and look forward to becoming more productive with it. - Mark

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 01-Feb-2007 08:38:46   
  1. See that the mapped column is not available using VS ->gridview -> add new column.
  2. Close VS solution
  3. Open VS solution, see that the column is now available.

I think this might be a VS issue. Would you try the following steps instead: 10. Close the webForm. 11. Re-open the webForm, see that the column is now available.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 01-Feb-2007 09:59:59   

I also think it's a vs.net issue. They had a big problem with temporary assemblies they compiled behind the scenes, this seems to be fixed somewhat with SP1, though it's still not optimal.

M6rk wrote:

To be filed under "if it hurts then don't do it".
One other really minor quirk: The option to enable sorting is not available on the GridView designer when referencing a LLBLGenProDataSource/Entity collection, although it can be set via Grid property sheet or programatically. Not sure if this is due to something beyond LLBLGenProDataSource's control (no pun intended). Just thought i would mention it.

What's available on the gridview designer is out of our control. At least I don't have any idea how to control that. The documentation about how to create datasourcecontrols and all the details is very limited if not completely absent. So what we shipped is more or less the work of trial/error, implementing feedback from testers/users etc.

Btw, I always use the property grid to set properties, the smarttag has little options anyway.

Frans Bouma | Lead developer LLBLGen Pro