Design time support for VS.Net 2005?

Posts   
 
    
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 19-Dec-2005 15:58:52   

According to documentation of v1.0.2005.1, it suggest to use a entity class, instead of collection class, because designer is not called by VS.Net 2005.

However, I'm now using entitycollection class to setup bindingsource, and it works fine and I don't find any problems so far. Could you explain some more about the problems of using collection class?

I've try to select a entity class to setup bindingsource and grid, but the grid cannot show child collections in design time, and it can only show the field name of relation. I found that if I select a instance of entity instead of a type of entity class as datasource of the bindingsource, it can show the field of child collection correctly. But the entity instance will be serialized into resource file when I save the file, I'm affraid designer cannot deserial the object if I change the structure of the entity in the future.

Could you tell me which one is the correct ways to setup databinding in VS.Net 2005?

Thanks you very much!!!

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 20-Dec-2005 02:27:52   

If you create a datasource directly with the entitycollection, it can't set the factory and won't work. To make it work

  • Drag the entity collection onto form
  • Add bindingsource to form, In property grid, set datasource of bindingsource to entitycollection
  • Set grid's datasource to bindingsource.
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 20-Dec-2005 04:51:29   

Great, I'm using this method to setup datasource now.

But I find a little problem using entitycollection to setup bindingsource, if an entity contains child collection, when I select databinding for textbox in propertygrid, once I click the combo box to search for field for databinding, the designer hangs for over 5 minutes until the combo box displayed.

When I use entity type or entity instance as the datasource of the bindingsource, it does not have any delay when I click the combo box.

I don't know it is the problem of entitycollection or the designer...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 21-Dec-2005 19:02:20   

Barry wrote:

Great, I'm using this method to setup datasource now.

But I find a little problem using entitycollection to setup bindingsource, if an entity contains child collection, when I select databinding for textbox in propertygrid, once I click the combo box to search for field for databinding, the designer hangs for over 5 minutes until the combo box displayed.

When I use entity type or entity instance as the datasource of the bindingsource, it does not have any delay when I click the combo box.

I don't know it is the problem of entitycollection or the designer...

I have no idea, it should return immediately. All the entitycollection does is return property descriptors for the type that's contained inside it.

Frans Bouma | Lead developer LLBLGen Pro
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 22-Dec-2005 02:58:58   

I've created a smaple project to duplicate the problem, would you mind I send you the project to have a look?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Dec-2005 06:31:34   

You may send it to support AT llblgen.com

or better you may open a case in our helpdesk system (http://www.llblgen.com/helpdesk)and attach the file to your case.

Thanks

Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 22-Dec-2005 07:01:24   

Ok, I've sent a email to you. Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Dec-2005 09:46:06   

Received it, Barry. I'll have a look at it this morning simple_smile

Frans Bouma | Lead developer LLBLGen Pro