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(); } }
protected override void TearDown() { var db = new PerformanceTest(); using (var ts = new TransactionScope()) { db.Delete(db.Simplests); db.SaveChanges(); ts.Complete(); } }