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