StrataFrame Forum

Prevent property be included in BO Info list

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

By Chan - 10/31/2008

Hi,

I would like to add a public property that set/get PrimaryBusinessObject for a form. I faced problem that, SF Web base page will treat this property as BO property and auto assign base BO to it. It cause my code break.



Anyway to prevent it?

Thank you
By Trent L. Taylor - 11/1/2008

What does your property definition look like?
By Chan - 11/1/2008

Hi,



public class BaseBO : BusinessLayer

{

}



public BaseBO PrimaryBusinessObject

{

get { return _primaryBusinesObject; }

set { _primaryBusinesObject = value; }

}




Thank you
By Trent L. Taylor - 11/1/2008

I will have to set this up and test it, but try typing it as a BusinessLayerBase and see if the problem persists.  The BusinessLayer inherits from BusinessLayerBase so this should not cause an issue.  But I would just be curious to see if your problem persists.