public HoadonTrangthaiCollection FetchByQuery(Query qry) { HoadonTrangthaiCollection coll = new HoadonTrangthaiCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public HoadonTrangthaiCollection FetchAll() { HoadonTrangthaiCollection coll = new HoadonTrangthaiCollection(); Query qry = new Query(HoadonTrangthai.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public HoadonTrangthaiCollection FetchByID(object MessageId) { HoadonTrangthaiCollection coll = new HoadonTrangthaiCollection().Where("Message_ID", MessageId).Load(); return(coll); }