public PnAccidentesLabCollection FetchByQuery(Query qry) { PnAccidentesLabCollection coll = new PnAccidentesLabCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnAccidentesLabCollection FetchAll() { PnAccidentesLabCollection coll = new PnAccidentesLabCollection(); Query qry = new Query(PnAccidentesLab.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnAccidentesLabCollection FetchByID(object IdAccidentesLab) { PnAccidentesLabCollection coll = new PnAccidentesLabCollection().Where("id_accidentes_lab", IdAccidentesLab).Load(); return(coll); }