Transactions in LINQ to SQL applications

Posted by nikolaosk on ASP.net Weblogs See other posts from ASP.net Weblogs or by nikolaosk
Published on Fri, 17 Dec 2010 19:46:00 GMT Indexed on 2010/12/18 17:14 UTC
Read the original article Hit count: 702

In this post I would like to talk about LINQ to SQL and transactions.When I have a LINQ to SQL class I always get asked this question, "How does LINQ treat Transactions?". When we use the DeleteOnSubmit() method or the InsertOnSubmit() method, all of those commands at some point are translated into T-SQL commands and then are executed against the database. All of those commands live in transactions and they follow the basic rules of transaction processing. They do succeed together or fail together...(read more)

© ASP.net Weblogs or respective owner

Related posts about ASP.NET

Related posts about visual studio 2008