document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     public class RepositorioPessoas : Repositorio<Pessoa>, IRepositorioPessoas
  2.     {
  3.         public RepositorioPessoas(IUnitOfWork unitOfWork)
  4.             : base(unitOfWork)
  5.         {
  6.         }
  7.         public override void RemoveEntity(Pessoa entity)
  8.         {
  9.             //antes de excluir uma entidade do repositório,
  10.             //o código aqui vai ser executado
  11.  
  12.             VerificaAlgumaCoisa();
  13.  
  14.             base.RemoveEntity(entity);
  15.         }
  16.  
  17.         #region "IRepositorioPessoas"
  18.  
  19.         public void VerificaAlgumaCoisa()
  20.         {
  21.             //fazer alguma coisa aqui
  22.         }
  23.  
  24.         #endregion "IRepositorioPessoas"
  25.     }
  26.  
');