Print Page | Close Window

Distributed Transaction promotion & Windows Azure

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4464
Printed Date: 21-Jan-2026 at 2:21pm


Topic: Distributed Transaction promotion & Windows Azure
Posted By: kdev
Subject: Distributed Transaction promotion & Windows Azure
Date Posted: 04-Oct-2013 at 11:46am

Hi,

In some scenarios in my Silverlight application, I need to use transactions on server side. I noticed that the transaction is promoted to Distributed Transaction when querying or saving (almost with a unique EntitityManager).

I understand that for scalability reasons and multi-server environments this is necessary.

Is there any options to set to avoid this to happen ?

Unfortunately Windows Azure platform doesn’t support distributed transactions !


Regards




Replies:
Posted By: kimj
Date Posted: 05-Oct-2013 at 8:03am
We'll have to look into why the promotion is occurring.   
 
DevForce will by default create a TransactionScope for a query or save, but you can turn this off by setting "UseTransactionScope=false" on the TransactionSettings associated with the QueryStrategy or SaveOptions.   Since you've already opened your own TransactionScope, there's really no need for the inner scope used by DevForce anyway.


Posted By: kdev
Date Posted: 25-Feb-2014 at 7:43am
Hi,

Any news about why the DTC promotion is occuring ? and how to avoid it (UseTransactionScop = false doesn't change anything).

Regards



Print Page | Close Window