Binary Artist

The Jason Marshall Experience

Binary Artist

Jason Marshall
E-mail me Send mail

Recent comments

Authors

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

LINQ with Transactions

 This is a simple example of how to wrap your LINQ db.DataContext SubmitChanges() in a Transaction.

This is much like using transaction in SQL Server.

I used a simple add function to outline the pattern to use when wrapping your LINQ commits in transactions.

*Add a ref to System.Transactions;

 

 

  
  
New LINQ the home verion. now you and your friends can play "Map that Relational Object" on a Friday Night !!!

* Some assembily required.

   (database not included)

 

 

  using System.Transactions;


Categories: C# | LINQ
Posted by Admin on Thursday, April 17, 2008 7:30 AM
Permalink | Comments (3) | Post RSSRSS comment feed

Comments

Autoresponder us

Friday, November 13, 2009 3:49 AM

Autoresponder

I admire the valuable information you offer in your articles. I will bookmark your blog and have my children check up here often. I am quite sure they will learn lots of new stuff here than anybody else!

dining chairs online us

Tuesday, November 17, 2009 4:42 AM

dining chairs online

Thank you for the sensible critique. Me & my neighbour were preparing to do some research about that. We got a good book on that matter from our local library and most books where not as influensive as your information. I am very glad to see such information which I was searching for a long time.This made very glad Smile

cheap seo

Tuesday, December 01, 2009 10:55 PM

cheap seo

This is great information thanks for sharing

Free Hit Counters
page counter