示例#1
0
        public SanPhamCollection FetchByQuery(Query qry)
        {
            SanPhamCollection coll = new SanPhamCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#2
0
        public SanPhamCollection FetchAll()
        {
            SanPhamCollection coll = new SanPhamCollection();
            Query             qry  = new Query(SanPham.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#3
0
        public SanPhamCollection FetchByID(object Masp)
        {
            SanPhamCollection coll = new SanPhamCollection().Where("Masp", Masp).Load();

            return(coll);
        }