WayneBrantley wrote:
In general the DataSource smart tag works fine.
However, here is how to break it...
With your project open (I am doing WebForms), open LLBLGen GUI.
Add a few tables to the existing project, for which you have already generated code. Regenerate, flip back to visual studio.
Do a rebuild/rebuild all or whatever you want.
Now when using the DataSource, the drop down list of Entity Collection WILL show your new Entity Collections (that you just added).
Select one of the new Entity Collections - you will notice that 'EntityCollectionTypeName' will be set to BLANK! Open the smarttag again - and select an EntityCollection that existed when you first opened the project - it WILL correctly set the EntityCollectionTypeName. No matter what you do, it will NOT correctly set the TypeName.
True. VS.NET 2005 issue. I talked with Scott Guthrie about this when he was in holland and he said they also had the same problem when testing the controls for asp.net 2.0: VS.NET loads one version for a dll in the designer space, when another build is available it won't always refresh it. Tiresome, I know. I spend WEEKS trying to hunt down why it would break. The blank list is due to the fact that it can't find ANY type, using the type discovery service of vs.net.
Other people who have written own datasourcecontrols, like Llotka for CSLA 2.0 had the same problems. No-one found a fix.
Very frustrating, I know that myself as I ran into it a couple of times when programming the new backend for our website. What was so stupid was that when I closed the form, opened it again in markup then showed it in design view it sometimes got fixed.
What saddens me is that the asp.net team also suffered from this and even then they didn't fix it. What other big motivator do they need to fix this...