예제 #1
0
 public void TransactionScopeTest3()
 {
     using (var scope = new TransactionScope(TransactionScopeOption.Required, TimeSpan.FromMinutes(10)))
     {
         using (var db = new TrackerDataContext())
         {
             db.BeginTransaction();
             var users = db.GetUsersWithRoles();
             db.CommitTransaction();
         }
         scope.Complete();
     }
 }