コード例 #1
0
        public void BorrarRetos(int p_oid)
        {
            /*PROTECTED REGION ID(WhateverGenNHibernate.CP.Whatever_Admin_borrarRetos) ENABLED START*/

            IAdminCAD adminCAD = null;
            AdminCEN  adminCEN = null;



            try
            {
                SessionInitializeTransaction();
                adminCAD = new AdminCAD(session);
                adminCEN = new  AdminCEN(adminCAD);


                RetoCAD reto = new RetoCAD(session);
                reto.Destroy(p_oid);


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


            /*PROTECTED REGION END*/
        }
コード例 #2
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*/
        }