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