Exemple #1
0
        public void BorrarReto(int p_oid)
        {
            /*PROTECTED REGION ID(WhateverGenNHibernate.CP.Whatever_Reto_borrarReto) ENABLED START*/

            IRetoCAD retoCAD = null;
            RetoCEN  retoCEN = null;



            try
            {
                SessionInitializeTransaction();
                retoCAD = new RetoCAD(session);
                retoCEN = new  RetoCEN(retoCAD);


                PuntuacionCP punt = new PuntuacionCP(session);
                ReporteCP    rep  = new ReporteCP(session);
                ComentarioCP com  = new ComentarioCP(session);

                punt.BorrarPuntuacionReto(p_oid);
                rep.BorrarReportesReto(p_oid);
                com.BorrarComentariosReto(p_oid);

                retoCAD.Destroy(p_oid);



                SessionCommit();
            }
            catch (Exception ex)
            {
                SessionRollBack();
                throw ex;
            }
            finally
            {
                SessionClose();
            }


            /*PROTECTED REGION END*/
        }