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