Beispiel #1
0
 protected override void DeleteMultipleTest()
 {
     using (var ts = new TransactionScope()) {
         var query = context.Simplests;
         foreach (var s in query)
         {
             context.Delete(s);
         }
         context.SaveChanges();
         ts.Complete();
     }
 }
Beispiel #2
0
        protected override void TearDown()
        {
            var db = new PerformanceTest();

            using (var ts = new TransactionScope()) {
                db.Delete(db.Simplests);
                db.SaveChanges();
                ts.Complete();
            }
        }