예제 #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();
     }
   }
 }
예제 #2
0
 protected override void OpenSession()
 {
   _db = new PerformanceTestDataContext();
   _db.Connection.Open();
 }