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