﻿<?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?)  » Use one BO for multiple exact tables?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 08 Apr 2026 19:43:24 GMT</lastBuildDate><ttl>20</ttl><item><title>Use one BO for multiple exact tables?</title><link>http://forum.strataframe.net/FindPost29597.aspx</link><description>Hi I have a database with multiple tables that are exactely the same but have different names in the same database. Ie. MIC_Segment_PID and GENLAB_Segment_PID. Can I create one BO called Segment_PID and on demand, map it to the&amp;nbsp; MIC_Segment_PID and GENLAB_Segment_PID tables in the database without creating native BOs for the tables?&lt;br/&gt;&lt;br/&gt;Michael</description><pubDate>Mon, 21 Feb 2011 08:47:40 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Use one BO for multiple exact tables?</title><link>http://forum.strataframe.net/FindPost29599.aspx</link><description>&lt;span style="font-weight: bold;"&gt;Option #1&lt;/span&gt;&lt;br/&gt;Well, it is possible, but I would recommend creating one BO for each table.&amp;nbsp; If you are going to have some common logic (i.e. methods, etc) that you want to share, then I would create a base BO that these 4 BOs inherit from.&amp;nbsp; Next, create 4 BOs and map them so they all get the property descriptors, SPROC mapping, etc. all lined up correctly.&amp;nbsp; Since they have different names it is easier to do this.&amp;nbsp; &lt;br/&gt;&lt;br/&gt;&lt;span style="font-weight: bold;"&gt;Option #2&lt;/span&gt;&lt;br/&gt;If you want to create a single BO, then you will have to override the TableName property that is generated, along with anything that directly relates to that table name (i.e. sprocs, CRUD settings, etc).&amp;nbsp; You can then dynamically manipulate the BO for your desired table name. &lt;br/&gt;&lt;br/&gt;But the easiest and safest way is to go with Option #1</description><pubDate>Mon, 21 Feb 2011 08:47:40 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>