StrataFrame Forum

How many ParentRelationships per BO?

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

By StarkMike - 4/30/2007

I have two BOs, Products and Prices. I set the parentrelationship property of Prices so that Products was the parent BO. Now I have another BO, BoardTypes and I want to add another field pair to the ParentRelationship property of Prices... Am I correct in assuming that there can only be one? (P.S. sorry about the Highlander pun :heheSmile



What should I do? Create another BO based on Prices so I can set its parentrelationship property to BoardTypes?
By StrataFrame Team - 4/30/2007

Yes, "there can be only one, MacLeod..." (I haven't seen that movie in a long time).  Um, so, yeah, you can have only one relationship.  So, if you want to have another relationship, you can either manage the relationship your self, or you can add a second Prices BO and use the SharedDataTableKey so that the two business objects use the same table.