LINQ to SQL and Transactions(west-wind.com)
submitted by
rstrahl(7226) 2 years, 10 months ago
Using explicit Transactions with Linq to Sql is fairly rare but when you need them you'll find that it natively doesn't provide manual transaction management. Rather you have to rely on the TransactionScope class to provide transaction wrapping. Here's a contrived example, and a couple of different transaction scenarios using TransactionScope to manage multiple L2S data operation as a single transaction.
|category: ADO.NET
|Views: 345
tags:
ADO.NET Database another
Everyones tags:
Your Tags: