Exemplo n.º 1
0
 public void Batch(Action<NHTestDataActions> action)
 {
     using (var nhTx = _session.BeginTransaction())
     {
         var dataActions = new NHTestDataActions(this);
         action(dataActions);
         nhTx.Commit();
     }
 }
Exemplo n.º 2
0
 public void Batch(Action <NHTestDataActions> action)
 {
     using (var nhTx = _session.BeginTransaction())
     {
         var dataActions = new NHTestDataActions(this);
         action(dataActions);
         nhTx.Commit();
     }
 }