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