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