public void Modify(TallaPrendaEN tallaPrenda) { try { SessionInitializeTransaction(); TallaPrendaEN tallaPrendaEN = (TallaPrendaEN)session.Load(typeof(TallaPrendaEN), tallaPrenda.Talla); session.Update(tallaPrendaEN); SessionCommit(); } catch (Exception ex) { SessionRollBack(); if (ex is AppEstadioGenNHibernate.Exceptions.ModelException) { throw ex; } throw new AppEstadioGenNHibernate.Exceptions.DataLayerException("Error in TallaPrendaCAD.", ex); } finally { SessionClose(); } }
public string New_(TallaPrendaEN tallaPrenda) { try { SessionInitializeTransaction(); session.Save(tallaPrenda); SessionCommit(); } catch (Exception ex) { SessionRollBack(); if (ex is AppEstadioGenNHibernate.Exceptions.ModelException) { throw ex; } throw new AppEstadioGenNHibernate.Exceptions.DataLayerException("Error in TallaPrendaCAD.", ex); } finally { SessionClose(); } return(tallaPrenda.Talla); }
public TallaPrendaEN ReadOIDDefault(string talla) { TallaPrendaEN tallaPrendaEN = null; try { SessionInitializeTransaction(); tallaPrendaEN = (TallaPrendaEN)session.Get(typeof(TallaPrendaEN), talla); SessionCommit(); } catch (Exception ex) { SessionRollBack(); if (ex is AppEstadioGenNHibernate.Exceptions.ModelException) { throw ex; } throw new AppEstadioGenNHibernate.Exceptions.DataLayerException("Error in TallaPrendaCAD.", ex); } finally { SessionClose(); } return(tallaPrendaEN); }
public TallaPrendaEN ReadOID(string talla) { TallaPrendaEN tallaPrendaEN = null; tallaPrendaEN = _ITallaPrendaCAD.ReadOID(talla); return(tallaPrendaEN); }
public void Modify(string p_TallaPrenda_OID) { TallaPrendaEN tallaPrendaEN = null; //Initialized TallaPrendaEN tallaPrendaEN = new TallaPrendaEN(); tallaPrendaEN.Talla = p_TallaPrenda_OID; //Call to TallaPrendaCAD _ITallaPrendaCAD.Modify(tallaPrendaEN); }
public string New_(string p_talla) { TallaPrendaEN tallaPrendaEN = null; string oid; //Initialized TallaPrendaEN tallaPrendaEN = new TallaPrendaEN(); tallaPrendaEN.Talla = p_talla; //Call to TallaPrendaCAD oid = _ITallaPrendaCAD.New_(tallaPrendaEN); return(oid); }