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*/ }
public RetoCEN(IRetoCAD _IRetoCAD) { this._IRetoCAD = _IRetoCAD; }
public RetoCEN() { this._IRetoCAD = new RetoCAD(); }