public VoucherCollection FetchByQuery(Query qry) { VoucherCollection coll = new VoucherCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public VoucherCollection FetchAll() { VoucherCollection coll = new VoucherCollection(); Query qry = new Query(Voucher.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public VoucherCollection FetchByID(object Id) { VoucherCollection coll = new VoucherCollection().Where("Id", Id).Load(); return(coll); }