public TblVaiTroCollection FetchByQuery(Query qry) { TblVaiTroCollection coll = new TblVaiTroCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TblVaiTroCollection FetchAll() { TblVaiTroCollection coll = new TblVaiTroCollection(); Query qry = new Query(TblVaiTro.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TblVaiTroCollection FetchByID(object Id) { TblVaiTroCollection coll = new TblVaiTroCollection().Where("Id", Id).Load(); return(coll); }