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); }
public PnFacturaCollection FetchByID(object IdFactura) { PnFacturaCollection coll = new PnFacturaCollection().Where("id_factura", IdFactura).Load(); return(coll); }