Example #1
0
 protected internal override void RecCommit(Transaction t)
 {
     bo.Committing(() =>
     {
         base.RecCommit(t);
         bo.entity.ID = base.bo.entity.ID;
         bo.Save(t);
     });
 }
Example #2
0
 protected internal virtual void RecCommit(Transaction t)
 {
     bo.Committing(() =>
     {
         bo.Save(t);
         if (_AggregationFattura != null)
         {
             _AggregationFattura.ReallyRemove((x) =>
             {
                 x._AggregatedRigaFattura = this;
                 x.RecCommit(t);
                 return(x.bo.Status == Status.ToBeRemoved);
             });
         }
     });
 }
Example #3
0
 protected internal virtual void RecCommit(Transaction t)
 {
     bo.Committing(() =>
     {
         if (_AggregatedRigaFattura != null)
         {
             _AggregatedRigaFattura.RecCommit(t);
             if (_AggregatedRigaFattura.bo.Status == Status.Removed)
             {
                 _AggregatedRigaFattura            = null;
                 bo.entity.AggregatedRigaFatturaID = null;
             }
             else
             {
                 bo.entity.AggregatedRigaFatturaID = _AggregatedRigaFattura.bo.entity.ID;
             }
         }
         bo.Save(t);
     });
 }