Exemplo n.º 1
0
 public void Delete()
 {
     try
     {
         using (EventosPL pl = new EventosPL())
         {
             pl.SP_EXCLUIR_EVENTOS(this.Instance.Codigo);
         };
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public int Insert()
 {
     EventosPL pl = null;
     try
     {
         pl = new EventosPL();
         return pl.SP_SALVAR_EVENTOS(this.Instance);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         if (pl != null)
             GC.SuppressFinalize(pl);
     }
 }
Exemplo n.º 3
0
 public List<DAL.Entidades.Eventos> List()
 {
     EventosPL pl = null;
     List<DAL.Entidades.Eventos> retorno = new List<DAL.Entidades.Eventos>();
     try
     {
         pl = new EventosPL();
         retorno =
             pl.SP_CONSULTAR_EVENTOS();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         if (pl != null)
             pl.Dispose();
     }
     return retorno;
 }
Exemplo n.º 4
0
 public void Select(int Codigo)
 {
     EventosPL pl = null;
     try
     {
         pl = new EventosPL();
         this.Instance = pl.SP_SELECIONAR_EVENTOS(Codigo);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }