Пример #1
0
        NuevoEmprendimiento cargarEmprendimiento(SqlDataReader dr)
        {
            NuevoEmprendimiento p = new NuevoEmprendimiento();

            p.Descripcion   = dr["Emp_Descripcion"].ToString();
            p.Titulo        = dr["Emp_Titulo"].ToString();
            p.Identificador = dr["Emp_id"].ToString();
            return(p);
        }
Пример #2
0
        public NuevoEmprendimiento GetEmprendimiento(string identificador)
        {
            SqlDataReader       dr = Emprendimiento.select_byId(identificador);
            NuevoEmprendimiento p  = null;

            if (dr != null && dr.Read())
            {
                p = cargarEmprendimiento(dr);
            }
            return(p);
        }