﻿<?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?)  » Best Practices for BO Design</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 16:20:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Best Practices for BO Design</title><link>http://forum.strataframe.net/FindPost7208.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I have created a BO that needs to look to another record in the same table for additional information.&amp;nbsp; This table&amp;nbsp;contains a&amp;nbsp;list names.&amp;nbsp; However, each record can point to an alias record.&amp;nbsp; The information I need is basic for the "main" record (Name, SSN, Birthdate, etc.).&amp;nbsp; I assume that the best place to handle this lookup is in the CheckRulesOnCurrentRow.&amp;nbsp; However I do not want to move any pointers or make a mess out of the existing dataset.&amp;nbsp; Can I use a "Get" method to obtain this information and how would one do the following:&lt;/P&gt;&lt;P&gt;Current Record ID: 96&lt;BR&gt;First Name: John&lt;BR&gt;Last Name: Doe&lt;BR&gt;BirthDate: 1/15/1968&lt;BR&gt;Alias ID: 52&lt;BR&gt;etc.&lt;/P&gt;&lt;P&gt;Alias Record ID: 52&lt;BR&gt;First Name: The "Man"&lt;BR&gt;Last Name: NULL&lt;BR&gt;BirthDate: 3/2/1970&lt;BR&gt;&lt;/P&gt;&lt;P&gt;How would I do the assignments after looking up?&lt;/P&gt;&lt;P&gt;NamesBO.GetByAliasID(NamesBO.AliasID)&lt;BR&gt;Me.AliasFirstName = ?&amp;nbsp; &amp;lt;--- what goes here?&lt;BR&gt;Me.AliasLastName = ?&lt;/P&gt;&lt;P&gt;The alias first name, last name, DOB, SSN, etc. need to be populated to custom properties for the UI designer to use.&lt;/P&gt;&lt;P&gt;Or can I create a new BO within the base BO to obtain this information?&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Ben</description><pubDate>Wed, 28 Feb 2007 09:31:40 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Best Practices for BO Design</title><link>http://forum.strataframe.net/FindPost7214.aspx</link><description>The MyBO.vb file specifically for you to add all of your custom code.&amp;nbsp; Just do not change the MyBO.Designer.vb file as this will be overwritten the next time the partial class is built through the BO Mapper.</description><pubDate>Wed, 28 Feb 2007 09:31:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Best Practices for BO Design</title><link>http://forum.strataframe.net/FindPost7213.aspx</link><description>I wasn't sure that was allowed within the BO "Class" itself :w00t:.&amp;nbsp; I will give it a shot.&amp;nbsp; Thanks guys!</description><pubDate>Wed, 28 Feb 2007 09:28:50 GMT</pubDate><dc:creator>Ben Kim</dc:creator></item><item><title>RE: Best Practices for BO Design</title><link>http://forum.strataframe.net/FindPost7210.aspx</link><description>Yes, as Ben said, you can create a second business object to gather the comparison record that you need.&amp;nbsp; A Get would also retrieve the data, but it is only going to return a DataTable (no strong-typing).&amp;nbsp; As for moving the record pointer, if you do, it doesn't matter... the internal method iterating through the rows for the CheckRulesOnCurrentRow event uses the MoveAbsolute() method internally, so you can be assured that on the next raising of the CheckRulesOnCurrentRow event, the CurrentRowIndex will be in the correct place.</description><pubDate>Wed, 28 Feb 2007 08:53:07 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Best Practices for BO Design</title><link>http://forum.strataframe.net/FindPost7209.aspx</link><description>Why don't you use a second BO for the second record? This way your first one stays in place!&lt;br&gt;</description><pubDate>Wed, 28 Feb 2007 08:47:03 GMT</pubDate><dc:creator>Ben Hayat</dc:creator></item></channel></rss>