示例#1
0
 ///<Summary>
 ///DeleteAllİnvoices
 ///This method deletes all BOİnvoices objects from its collection
 ///</Summary>
 ///<returns>
 ///void
 ///</returns>
 ///<parameters>
 ///
 ///</parameters>
 public virtual void DeleteAllİnvoices()
 {
     Doing(this);
     RegisterDataObject(_iİnvoicesRepository, null);
     BeginTransaction(_iİnvoicesRepository, "deleteAllİnvoices");
     try
     {
         _iİnvoicesRepository.DeleteAllByOrderİd(_id);
         CommitTransaction(_iİnvoicesRepository);
         Done(this);
         if (_boİnvoicesCollection != null)
         {
             _boİnvoicesCollection.Clear();
             _boİnvoicesCollection = null;
         }
     }
     catch (Exception ex)
     {
         Failed(this, ex);
         RollbackTransaction(_iİnvoicesRepository, "deleteAllİnvoices");
         Handle(this, ex);
     }
 }