Esempio n. 1
0
 public void Batch(Action <Db4oTestDataActions> actions)
 {
     try
     {
         var batchActions = new Db4oTestDataActions(this);
         actions(batchActions);
         _container.Commit();
     }
     catch
     {
         _container.Rollback();
         throw;
     }
 }
Esempio n. 2
0
 public void Batch(Action<Db4oTestDataActions> actions)
 {
     try
     {
         var batchActions = new Db4oTestDataActions(this);
         actions(batchActions);
         _container.Commit();
     }
     catch
     {
         _container.Rollback();
         throw;
     }
 }