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