﻿<?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?)  » Business Object execute question...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 12 Sep 2026 03:01:29 GMT</lastBuildDate><ttl>20</ttl><item><title>Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7795.aspx</link><description>I noticed that the methods on the Businessobjects for executescalar and executenonquery where marked as protected, and thus aren't available to my instantiated business objects in my applicaiton. &lt;/P&gt;&lt;P&gt;So I went in and made a public function to execute a sqlcommand parameter.&amp;nbsp; Im guessing there is a good reason you didn't include these methods as public, but Im wondering what the reprocusions of my adding a method to execute a sqlcommand from the busniness object would be.&lt;/P&gt;&lt;P&gt;And btw, I've been getting a lot of errors when trying to use the forum, mainly when trying to list a forum from the forum main page.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Thu, 29 Mar 2007 16:12:51 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7803.aspx</link><description>No problem :)</description><pubDate>Thu, 29 Mar 2007 16:12:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7802.aspx</link><description>Whew, thats what I was hoping :-)&lt;/P&gt;&lt;P&gt;Thanks Trent.&lt;/P&gt;&lt;P&gt;Robin Giltner</description><pubDate>Thu, 29 Mar 2007 15:46:02 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7800.aspx</link><description>[quote]Would using that method still work fine if the Middle Tier server were in play ?[/quote]&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; If you were using the Enterprise Server then your DAL would be an EnterpriseDataSourceItem instead of an SQLDataSourceItem which would properly interpret and relay all of the logic.</description><pubDate>Thu, 29 Mar 2007 15:29:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7798.aspx</link><description>I figured as much, and thats how I had been using the Data layer.&amp;nbsp; Would using that method still work fine if the Middle Tier server were in play ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robin</description><pubDate>Thu, 29 Mar 2007 15:12:51 GMT</pubDate><dc:creator>Robin J Giltner</dc:creator></item><item><title>RE: Business Object execute question...</title><link>http://forum.strataframe.net/FindPost7797.aspx</link><description>[quote]And btw, I've been getting a lot of errors when trying to use the forum, mainly when trying to list a forum from the forum main page.[/quote]&lt;/P&gt;&lt;P&gt;:blush: sorry about this....we are talking with InstantASP trying to get this resolved.&amp;nbsp; Apparently there are issues with the indexes be fragmented but not allowing rebuilds to correct the issue.&amp;nbsp; We will add a post once this is corrected letting you know.&lt;/P&gt;&lt;P&gt;[quote]Im guessing there is a good reason you didn't include these methods as public, but Im wondering what the reprocusions of my adding a method to execute a sqlcommand from the busniness object would be.[/quote]&lt;/P&gt;&lt;P&gt;Yes.&amp;nbsp; You are trying to access these methods on a BO outside of the BO itself.&amp;nbsp; In this case just use the data access layer versus creating some method to illogically work around the protected definition.&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Data.DataBasics.DataSources(0).ExecuteScalar(...)[/codesnippet]</description><pubDate>Thu, 29 Mar 2007 15:08:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>