示例#1
0
        public void BorrarReto(int p_oid)
        {
            /*PROTECTED REGION ID(WhateverGenNHibernate.CEN.Whatever_Reto_borrarReto) ENABLED START*/
            PuntuacionCAD punt = new PuntuacionCAD();
            ReporteCAD    rep  = new ReporteCAD();

            System.Collections.Generic.IList <PuntuacionEN> puntos;
            System.Collections.Generic.IList <ReporteEN>    reportes;

            Destroy(p_oid);

            puntos = punt.FiltrarTodosRetos(p_oid);
            foreach (PuntuacionEN element in puntos)
            {
                punt.Destroy(element.Id);
            }

            reportes = rep.FiltrarTodosRetos(p_oid);
            foreach (ReporteEN element in reportes)
            {
                rep.Destroy(element.ID);
            }
            /*PROTECTED REGION END*/
        }