New Posts New Posts RSS Feed: TransactionSettings.Default
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

TransactionSettings.Default

 Post Reply Post Reply
Author
Sakar SR View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jul-2010
Location: India
Posts: 39
Post Options Post Options   Quote Sakar SR Quote  Post ReplyReply Direct Link To This Post Topic: TransactionSettings.Default
    Posted: 25-Feb-2012 at 1:59pm
TransactionSettings.Default = new TransactionSettings(System.Transactions.IsolationLevel.ReadCommitted, new TimeSpan(0, 1, 0), false);

Let me know how to implement the above TransactionSettings for the entire application.
Please let me know where to put this code, so all further queries will work on it.

Thanks    
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 27-Feb-2012 at 1:43pm
Hi Sakar,
 
You could do it at the very beginning of your app:
 
public MainWindow() {
  TransactionSettings.Default = new TransactionSettings(System.Transactions.IsolationLevel.Chaos, new TimeSpan(0, 3, 0), true);
  InitializeComponent();
}
 
Be sure to add a reference to System.Transactions.
 
Regards,
   Silvio.
Back to Top
Sakar SR View Drop Down
Newbie
Newbie
Avatar

Joined: 21-Jul-2010
Location: India
Posts: 39
Post Options Post Options   Quote Sakar SR Quote  Post ReplyReply Direct Link To This Post Posted: 28-Feb-2012 at 7:55am
thanks sbelini

thanks for your help.

Have a nice day


Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down