<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Transaction in DevForce</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Transaction in DevForce</description>
  <pubDate>Wed, 10 Jun 2026 07:18:57 -700</pubDate>
  <lastBuildDate>Fri, 29 Oct 2010 15:00:56 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2268</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Transaction in DevForce : That&amp;#039;s the standard behavior...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8987#8987</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 29-Oct-2010 at 3:00pm<br /><br />That's the standard behavior if you simply call <DIV>&nbsp;</DIV><DIV>_em.SaveChangesAsync(...) //if saving telefone fails, pessoa and email will be rolled back</DIV><DIV>&nbsp;</DIV><DIV>Now, if you want to reject the changes in your entity manager, you need to handle the exception accordingly:</DIV><DIV>&nbsp;</DIV><DIV>_em.SaveChangesAsync(savedArgs =&gt; {</DIV><DIV>&nbsp;&nbsp;&nbsp; if (savedArgs.HasError) {</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // handle exception - reject changes&nbsp;here</DIV><DIV>&nbsp;&nbsp;&nbsp; }</DIV><DIV>&nbsp; });</DIV>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 15:00:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8987#8987</guid>
  </item> 
  <item>
   <title>Transaction in DevForce : Hi Silviofor ex- we have (pessoa,email,telefone)...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8984#8984</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 29-Oct-2010 at 12:06pm<br /><br />Hi Silvio<br><div><br>for ex- we have (pessoa,email,telefone) and operation fail on saving telefone<br>we have to reject changes in pessoa and email too ie rollback in both entities.. <br><br>I think you got clear view now...<br><br><br>Thanks<br><br><br></div><br>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 12:06:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8984#8984</guid>
  </item> 
  <item>
   <title>Transaction in DevForce : Bala, By default, saves are transactional,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8983#8983</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 29-Oct-2010 at 11:53am<br /><br /><P>Bala,</P><DIV>By default, saves are transactional, i.e. when you try to save your 3 entities (pessoa, email, telefone), DevForce processes them together as a single unit of work. Either&nbsp;all 3 saves&nbsp;succeed, or they are all rolled back.</DIV><DIV>&nbsp;</DIV><DIV>If I understand, you want to save all 3 entities created (pessoa, email, telefone) in 3 different transactions. If any of them fails, only that particular save is rolled back. If this is the case, you should call Save (or SaveAsync) for each entity (or group of entities you want in a transaction).</DIV><DIV>&nbsp;</DIV><DIV>Please let me know if that's what you are looking for.</DIV><span style="font-size:10px"><br /><br />Edited by sbelini - 29-Oct-2010 at 12:00pm</span>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 11:53:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8983#8983</guid>
  </item> 
  <item>
   <title>Transaction in DevForce : Hi SbeliniI went thru your Example...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8982#8982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 29-Oct-2010 at 11:26am<br /><br />Hi Sbelini<br><br>I went thru&nbsp; your Example but its not enough to undesrstand me.<br>I want to save sequentially one by one object if one of object fail due to any reason<br>I want to roolback it...<br><br>for example like power failuare or any techinical&nbsp; problem..<br><br>could you assist me..<br>thanks<br>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 11:26:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8982#8982</guid>
  </item> 
  <item>
   <title>Transaction in DevForce : Hi bala,   I&amp;#039;m not sure...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8981#8981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 29-Oct-2010 at 11:21am<br /><br />Hi bala, <DIV>&nbsp;</DIV><DIV>I'm not sure I understand what you need. Can you clarify?</DIV><DIV>&nbsp;</DIV><DIV>In the meantime, you can find some informations about transactions at </DIV><DIV><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/AdvPersist_Transacti&#111;nalQueries" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/AdvPersist_TransactionalQueries</A></DIV><DIV>and </DIV><DIV><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Saving_Transacti&#111;ns" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/Saving_Transactions</A></DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Fri, 29 Oct 2010 11:21:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8981#8981</guid>
  </item> 
  <item>
   <title>Transaction in DevForce : Hi  I have to use Transaction. ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8940#8940</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2268<br /><strong>Posted:</strong> 27-Oct-2010 at 11:20am<br /><br />Hi <DIV>I have to use Transaction.</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;     <SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;button1_Click(<SPAN style="COLOR: blue">object</SPAN>&nbsp;sender,&nbsp;<SPAN style="COLOR: #2b91af">RoutedEventArgs</SPAN>&nbsp;e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">PESSOA</SPAN>&nbsp;pessoa&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">PESSOA</SPAN>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_em.AddEntity(pessoa);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;button2_Click(<SPAN style="COLOR: blue">object</SPAN>&nbsp;sender,&nbsp;<SPAN style="COLOR: #2b91af">RoutedEventArgs</SPAN>&nbsp;e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">PESSOA_EMAIL</SPAN>&nbsp;email&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">PESSOA_EMAIL</SPAN>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_em.AddEntity(email);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;button3_Click(<SPAN style="COLOR: blue">object</SPAN>&nbsp;sender,&nbsp;<SPAN style="COLOR: #2b91af">RoutedEventArgs</SPAN>&nbsp;e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: #2b91af">PESSOA_TELEFONE</SPAN>&nbsp;telefone&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">PESSOA_TELEFONE</SPAN>();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_em.AddEntity(telefone);<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">private</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;Save_Click(<SPAN style="COLOR: blue">object</SPAN>&nbsp;sender,&nbsp;<SPAN style="COLOR: #2b91af">RoutedEventArgs</SPAN>&nbsp;e)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>	////	_em.saveAsynco()..&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">	Above manner i have to use Transaction Commit and rollback</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">Any Help</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">PS: I am using oracle as  database.</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">Thanks	</PRE><PRE style="FONT-FAMILY: c&#111;nsolas">&nbsp;</PRE></DIV><span style="font-size:10px"><br /><br />Edited by bala - 27-Oct-2010 at 11:21am</span>]]>
   </description>
   <pubDate>Wed, 27 Oct 2010 11:20:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2268&amp;PID=8940#8940</guid>
  </item> 
 </channel>
</rss>