public AprRelControlNiñoSanoFactorRiesgoCollection FetchByQuery(Query qry) { AprRelControlNiñoSanoFactorRiesgoCollection coll = new AprRelControlNiñoSanoFactorRiesgoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public AprRelControlNiñoSanoFactorRiesgoCollection FetchAll() { AprRelControlNiñoSanoFactorRiesgoCollection coll = new AprRelControlNiñoSanoFactorRiesgoCollection(); Query qry = new Query(AprRelControlNiñoSanoFactorRiesgo.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }