Binding a CSLA collection in Workflow

Binding a CSLA collection in Workflow

Old forum URL: forums.lhotka.net/forums/t/4725.aspx


JonM posted on Monday, April 21, 2008

I'm trying to bind a CSLA business collection to replicator activity's intialChildData property.   I get an error that it the property must be an IList object.  I'm using CSLA.net 2.x.  Does the business collection support IList in CSLA.net 3.0 or 3.5?

sergeyb replied on Monday, April 21, 2008

Hmm. .. Sounds strange.  BusinessListBase does implement IList.  Try to look at your collection in object browser to see if you also can trace it to IList.  I was able to.

Here is my inheritance tree:  BusinessListBase (Of T, C) -> ExtendedBindingList (Of C) -> BindingList(of T) -> IList

 

Sergey Barskiy

Senior Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: JonM [mailto:cslanet@lhotka.net]
Sent: Monday, April 21, 2008 5:05 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Binding a CSLA collection in Workflow

 

I'm trying to bind a CSLA business collection to replicator activity's intialChildData property.   I get an error that it the property must be an IList object.  I'm using CSLA.net 2.x.  Does the business collection support IList in CSLA.net 3.0 or 3.5?

JonM replied on Wednesday, April 23, 2008

You are right my objects to implement IList.  However, the Workflow dialog disagrees.  I've found if I manually type in the binding into the propertybox instead of using the dialog that it works.  I'm using VS2005 Pro with the Workflow extensions.  I wonder if WF works any better in VS2008, it is a bit rough in VS2005.

Copyright (c) Marimer LLC