﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Naming subclassed bo's.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 27 May 2026 22:38:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22143.aspx</link><description>in a recent project, i have a scenario set up like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Namespace Business_Objects:&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;BaseBOs&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;CustomersBO&lt;/LI&gt;&lt;LI&gt;ContractsBO&lt;/LI&gt;&lt;LI&gt;ContactsBO&lt;/LI&gt;&lt;LI&gt;ClientsBO..&lt;/LI&gt;&lt;/UL&gt;&lt;LI&gt;Customer Maintanance&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;CustomersBO (subclasssed from BaseBOs CustomersBO)&lt;/LI&gt;&lt;LI&gt;ClientsBO (subclassed from BaseBOs ClientsBO)&lt;/LI&gt;&lt;LI&gt;..&lt;/LI&gt;&lt;/UL&gt;&lt;LI&gt;Contracts Maintanance&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;CustomersBO (subclassed from BaseBOs CustomersBO)&lt;/LI&gt;&lt;LI&gt;ContractsBO (subclassed from BaseBOs ContractsBo)&lt;/LI&gt;&lt;LI&gt;..&lt;/LI&gt;&lt;/UL&gt;&lt;LI&gt;.. and so on&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;i was wondering if anyone got some naming convention advice for the subclassed bo's to reduce confusion.&lt;/P&gt;&lt;P&gt;Something like CustMaintCustomersBO and CustMaintClientsBO ... ContrMaintCustomersBO..&lt;BR&gt;but then i have a namespace like customerpropertiesgroups and one customerproperties. So i cannot name them like custprop..something because it could be confused with either one.&lt;/P&gt;&lt;P&gt;not sure. i have around 15 BO's in total, and not all of them are subclassed in each namespace, but still its quite alot of bo's going around.&lt;/P&gt;&lt;P&gt;How do you name your bo's in such cases ?&lt;/P&gt;&lt;P&gt;Thanks :)</description><pubDate>Wed, 04 Mar 2009 02:51:01 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22173.aspx</link><description>allright. thanks</description><pubDate>Wed, 04 Mar 2009 02:51:01 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22172.aspx</link><description>At this point, I don't think you do.  There is a feature request in to allow the marking of a BO as one that won't be built, but that hasn't happened yet.  This would be used in cases like this and also for base BOs, which also aren't built (or configured in the BO Mapper).</description><pubDate>Tue, 03 Mar 2009 22:09:46 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22166.aspx</link><description>allright. thanks. &lt;/P&gt;&lt;P&gt;and how do i get rid of the errors about the subclassed bos not being configured, while rebuilding the base bo's ?&lt;/P&gt;&lt;P&gt;thx</description><pubDate>Tue, 03 Mar 2009 14:27:12 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22159.aspx</link><description>Philip,&lt;br&gt;
&lt;br&gt;
No, you don't need to map the sub-classed BOs, if you're doing it like Trent suggested. Because the report BO is sub-classed from the main BO, it will have all the functionality of that main BO.  Also, if you change the underlying table, you only need to remap the main BO.  All the sub-classed BOs will immediately get the changes.  &lt;br&gt;
&lt;br&gt;
The sub-classed BO just ensures that if you need to do something specific for a report, you can do it in one class and not break other reports. It also ensures that you don't have some huge, overly complex BO trying to handle everything.&lt;br&gt;
&lt;br&gt;
As to not having these within the toolbox, you can use the ToolboxItemAttribute.&lt;br&gt;
&lt;br&gt;
[codesnippet]// C#&lt;br&gt;
[ToolboxItem(false)]&lt;br&gt;
public class PatientBO[/codesnippet]&lt;br&gt;
&lt;br&gt;
[codesnippet]' VB&lt;br&gt;
&amp;lt;ToolboxItem(false)&amp;gt; _&lt;br&gt;
Public Class PatientBO[/codesnippet]&lt;br&gt;
&lt;br&gt;
You might want them in the toolbox though, if you will be dropping them on forms.</description><pubDate>Tue, 03 Mar 2009 11:43:35 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22157.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;am i supposed to also map my subclassed bo's in the BOM ? Because there are some properties that i can only set on the original (base) bo's and the subclassed bo's also have no .designer file.&lt;/P&gt;&lt;P&gt;Also, from your method, how do you prevent your toolbox to fill up with all the multiple versions of one bo ?&lt;/P&gt;&lt;P&gt;thanks.</description><pubDate>Tue, 03 Mar 2009 10:52:33 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item><item><title>RE: Naming subclassed bo's.</title><link>http://forum.strataframe.net/FindPost22149.aspx</link><description>When we do this, we place them in a different namespace.&amp;nbsp; This is something that we do for every report.&amp;nbsp; So in our medical application, we probably have the PatientsBO inherited some 40+ times for each report that uses it.&amp;nbsp; So the inherited BO is still named PatientsBO, but it will reside in a different namespace.&amp;nbsp; This reduces confusion as we know that when it is all said and done, this is going to at the very least, have all of the original PatientsBO properties.&amp;nbsp; This may not work for you, but this has been a good system for us.</description><pubDate>Tue, 03 Mar 2009 07:53:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>