Example #1
0
 protected override void TearDown()
 {
   using (var dataContext = new PerformanceTestDataContext()) {
     dataContext.Connection.Open();
     using (dataContext.Transaction = dataContext.Connection.BeginTransaction()) {
       dataContext.Simplests.DeleteAllOnSubmit(dataContext.Simplests);
       dataContext.SubmitChanges();
       dataContext.Transaction.Commit();
     }
   }
 }
Example #2
0
 protected override void OpenSession()
 {
     _db = new PerformanceTestDataContext();
     _db.Connection.Open();
 }