public SysParentescoCollection FetchByQuery(Query qry) { SysParentescoCollection coll = new SysParentescoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public SysParentescoCollection FetchAll() { SysParentescoCollection coll = new SysParentescoCollection(); Query qry = new Query(SysParentesco.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int id = Convert.ToInt32(Request.QueryString["id"]); DalSic.SysPaciente pac = new DalSic.SysPaciente(id); lblApellido.Text = pac.Apellido; lblNombre.Text = pac.Nombre; lblDocumento.Text = Convert.ToString(pac.NumeroDocumento); hlParentesco.NavigateUrl = string.Format("ParentescoEdit.aspx?id={0}", pac.IdPaciente); SysParentescoCollection p = new DalSic.SysParentescoCollection().Where("idPaciente", pac.IdPaciente); gvParentesco.DataSource = p.OrderByAsc("TipoParentesco").Load(); gvParentesco.DataBind(); } }
public SysParentescoCollection FetchByID(object IdParentesco) { SysParentescoCollection coll = new SysParentescoCollection().Where("idParentesco", IdParentesco).Load(); return(coll); }