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