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