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