﻿<?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?)  » ExecuteNonQuery() and Transactions</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 09:34:32 GMT</lastBuildDate><ttl>20</ttl><item><title>ExecuteNonQuery() and Transactions</title><link>http://forum.strataframe.net/FindPost11609.aspx</link><description>Hi Folks &lt;P&gt;Will the below ExecuteNonQuery run as part of&amp;nbsp;the transaction?&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;TransactionBegin(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;, Data.IsolationLevel.RepeatableRead)&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;ExecuteNonQuery(c)&lt;/P&gt;&lt;P&gt;Something.Save(True)&lt;/P&gt;&lt;P&gt;TransactionCommit("")&lt;/P&gt;&lt;P&gt;[/codesnippet]</description><pubDate>Fri, 21 Sep 2007 13:21:30 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: ExecuteNonQuery() and Transactions</title><link>http://forum.strataframe.net/FindPost11632.aspx</link><description>Good to hear.&amp;nbsp; Also, if you need access to the raw SqlTransaction object, you can access it through the Transactions property on the SqlDataSourceItem.&amp;nbsp; Just give it the key, and it will return the SqlTransaction object; just in case you need to do anything with it.</description><pubDate>Fri, 21 Sep 2007 13:21:30 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: ExecuteNonQuery() and Transactions</title><link>http://forum.strataframe.net/FindPost11629.aspx</link><description>Works for me! Thanks!</description><pubDate>Fri, 21 Sep 2007 09:43:12 GMT</pubDate><dc:creator>choyt</dc:creator></item><item><title>RE: ExecuteNonQuery() and Transactions</title><link>http://forum.strataframe.net/FindPost11617.aspx</link><description>Um, no, it won't, there isn't a wrapper method on the BO for that... It needs to be added.&lt;/P&gt;&lt;P&gt;In the meantime, you can do so through the DbDataSourceItem directly.&amp;nbsp; So, in the BO:&lt;/P&gt;&lt;P&gt;DbCommand c = SomeCommand&lt;BR&gt;DataBasics.DataSources("key").ExecuteNonQuery(c, True, "TranKey")</description><pubDate>Thu, 20 Sep 2007 09:04:07 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>