public MultitecUAGenNHibernate.EN.MultitecUA.NoticiaEN New_(string p_titulo, string p_cuerpo, string p_foto)
        {
            /*PROTECTED REGION ID(MultitecUAGenNHibernate.CP.MultitecUA_Noticia_new_) ENABLED START*/

            INoticiaCAD noticiaCAD = null;
            NoticiaCEN  noticiaCEN = null;

            MultitecUAGenNHibernate.EN.MultitecUA.NoticiaEN result = null;


            try
            {
                SessionInitializeTransaction();
                noticiaCAD = new NoticiaCAD(session);
                noticiaCEN = new  NoticiaCEN(noticiaCAD);



                int oid;
                //Initialized NoticiaEN
                NoticiaEN noticiaEN;
                noticiaEN        = new NoticiaEN();
                noticiaEN.Titulo = p_titulo;

                noticiaEN.Cuerpo = p_cuerpo;

                noticiaEN.Foto = p_foto;

                //Call to NoticiaCAD

                oid    = noticiaCAD.New_(noticiaEN);
                result = noticiaCAD.ReadOIDDefault(oid);



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


            /*PROTECTED REGION END*/
        }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            NoticiaEN t = obj as NoticiaEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
 public NoticiaEN(NoticiaEN noticia)
 {
     this.init(Id, noticia.Titulo, noticia.Cuerpo, noticia.FotoNoticia, noticia.Fecha);
 }