StrataFrame Forum

ParentRelationship

http://forum.strataframe.net/Topic30956.aspx

By Trevor Hendricks - 2/21/2012

Hi All,

I am trying to set up a ParentRelationship between bo's as in the documentation.

I have all my bo's set up but i do not get the "ParentRelationship" as a property when in the designer.

All my bo's are subclassed from a basebo which in turn inherits from MicroFour.StrataFrame.Business.BusinessLayer

I noticed that my basebo class does have this property. What do i need to do to make this visible in the other bo's ?

Thanks

Trevor

using VS2010,C#
By Ivan George Borges - 2/21/2012

Hi Trevor.

The ParentRelationship property will only be visible at the BO definition. Once you drop it on a form, you will only set the ParentBusinessObject that should be of the type of the Parent BO you defined originally.
By Trevor Hendricks - 2/22/2012

Hi Ivan,

that's the problem. The documentation says to set it in the component designer but it doesn't appear in the subclassed bo's only the basebo.
By Ivan George Borges - 2/22/2012

Oh, OK. Got it.

I don't know how you are creating your Base BO and then inheriting from it, but here is a link with a sample, see if it helps:

http://forum.strataframe.net/FindPost27794.aspx
By Trevor Hendricks - 2/22/2012

Hi Ivan,

I found the problem (combination of fat fingers and intellisense).

Thanks,

Trevor
By Ivan George Borges - 2/22/2012

You're welcome, Trevor. Glad you got it working.Cool