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