Once the TransactionScope picks a transaction type, it always uses that transaction.
Summary
Sometimes working with a new technology can be intimidating and overwhelming. This need not be the
case with LINQ to SQL and entities. LINQ to SQL is flexible and powerful yet easy to use, as this chapter
showed, even when dealing with more complex topics.
269
Part III: LINQ to SQL
This chapter tackled transactions and concurrency conflicts. First, you saw how to track changes to the
entity object. (Knowing the state of your object and tracking its changes will come in handy.) Then you
explored inserting, updating, and deleting data via LINQ to SQL entities.
LINQ to SQL has great support for optimistic concurrency, and this chapter focused on several features
that will help you detect and appropriately handle concurrency conflicts, such as the ConflictMode and
ChangeConflictExpeption.
270
LINQ to DataSet
Most, if not all, .NET developers are familiar with the concept of a DataSet because it is one of the
most used components of ADO.NET.
Pages:
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435