<?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 : Using TransactionScope for volatile data</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Using TransactionScope for volatile data</description>
  <pubDate>Wed, 13 May 2026 19:18:05 -700</pubDate>
  <lastBuildDate>Fri, 11 Nov 2011 10:02:01 -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=3088</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>Using TransactionScope for volatile data :   By default DevForce uses a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3088&amp;PID=12036#12036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3088<br /><strong>Posted:</strong> 11-Nov-2011 at 10:02am<br /><br />By default DevForce uses a TransactionScope with an IsolationLevel of ReadCommitted for every query or save.&nbsp; You can change this default by changing the TransactionSettings.Default or&nbsp;setting the TransactionSettings on the QueryStrategy and/or SaveOptions.&nbsp; &nbsp;For example to change the default:<div><span style="color: rgb43, 145, 175;"></span>&nbsp;</div><div><span style="color: rgb43, 145, 175;">&nbsp; TransactionSettings</span>.Default&nbsp;=&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: rgb43, 145, 175;">TransactionSettings</span>(<span style="color: rgb43, 145, 175;">IsolationLevel</span>.ReadCommitted,&nbsp;<span style="color: rgb43, 145, 175;">TimeSpan</span>.FromSeconds(30),&nbsp;<span style="color: blue;">true</span>);</div>]]>
   </description>
   <pubDate>Fri, 11 Nov 2011 10:02:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3088&amp;PID=12036#12036</guid>
  </item> 
  <item>
   <title>Using TransactionScope for volatile data :     We have a Silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3088&amp;PID=12028#12028</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3088<br /><strong>Posted:</strong> 10-Nov-2011 at 10:25am<br /><br /><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font size="3"><font face="Calibri">We have a Silverlight app and have a process on the serverthat grabs a number from the database and increments the number by oneafterwards. We need to make sure that the number is never grabbed at the sametime producing duplicate records. There is also logic that tells which numberfield in the entity to increment, so auto incrementing fields won’t work. Inour previous product we use SQL Transactions and they worked great.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font size="3"><font face="Calibri">I found an implementation for Transactions in EntityFramework here:<o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><a href="http://geekswithblogs.net/SudheersBlog/archive/2010/04/11/139193.aspx" target="_blank"><u><font size="3" face="Calibri">http://geekswithblogs.net/SudheersBlog/archive/2010/04/11/139193.aspx</font></u></a><o:p></o:p></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font size="3"><font face="Calibri">I there are lots of options transactionscope:<o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><a href="http://enggtech.wordpress.com/2009/10/16/transacti&#111;nscope-class-system-transacti&#111;ns/" target="_blank"><u><font size="3" face="Calibri">http://enggtech.wordpress.com/2009/10/16/transactionscope-class-system-transactions/</font></u></a><o:p></o:p></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font size="3"><font face="Calibri">I have tried many combinations of these settings and I alwaysget the same error:<o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font face="Calibri"><font size="3">“The transaction specified for TransactionScope has adifferent IsolationLevel than the value requested for the scope. <span style="mso-spacerun: yes;">&nbsp;</span>Parameter name: transactionOptions.IsolationLevel”<o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><font size="3"><font face="Calibri">Does anybody have an example of doing transactions inDevforce that are outside the CRUD model?<o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font>]]>
   </description>
   <pubDate>Thu, 10 Nov 2011 10:25:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3088&amp;PID=12028#12028</guid>
  </item> 
 </channel>
</rss>