BusinessListBase and adding new Business Objects

BusinessListBase and adding new Business Objects

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


opedog posted on Wednesday, May 07, 2008

CSLA 3.0.4

Here's my scenario.  I have a parent BO that has some child BO.  The child BOs store more detailed relationship information about the parent BO (think customers and accounts, and the accounts store information such as what kind of relationship back to the customer, ie, Owner, Partner, etc).

When I display the list of relationships via the child BO, I simply ask for it's list of relationships.  However, when I want to display the list of relationships I iterate through the list of accounts and add all the relationships to a temporary BusinessListBase of relationships.

What I just learned is that when adding a new item to a BusinessListBase it will reset the edit level of the item being added.

Unfortunately, I can't change the list type of the parent BO because it comes from an interface (IRelationshipOwner).  That's the easy way, simply change it to a List<relationship> and be done with it, but that's not an option.

My question is, am I out of options at this point?  Should the design be done differently?

Thanks for any input.  :)

Copyright (c) Marimer LLC