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