public PnFacturaCollection FetchByQuery(Query qry) { PnFacturaCollection coll = new PnFacturaCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnFacturaCollection FetchAll() { PnFacturaCollection coll = new PnFacturaCollection(); Query qry = new Query(PnFactura.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }