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