示例#1
0
        public static Product ChiTiet(string id)
        {
            var db = new SmartShopConnectionDB();
            var sp = db.SingleOrDefault <Product>("SELECT * FROM Product WHERE MaSP=@0", id);

            sp.dsLoai  = LoaiBus.DanhSach();
            sp.LuotXem = sp.LuotXem + 1;
            db.Update("Product", "MaSP", sp);
            return(sp);
        }
示例#2
0
        public static void Sua(Loai l)
        {
            var db = new SmartShopConnectionDB();

            db.Update("Loai", "MaLoai", l);
        }
示例#3
0
        public static void Sua(Comment cmt)
        {
            var db = new SmartShopConnectionDB();

            db.Update("Comment", "IDCmt", cmt);
        }
示例#4
0
        public static void Sua(Product sp)
        {
            var db = new SmartShopConnectionDB();

            db.Update("Product", "MaSP", sp);
        }
示例#5
0
        public static void Sua(Account acc)
        {
            var db = new SmartShopConnectionDB();

            db.Update("Accounts", "UserName", acc);
        }
示例#6
0
        public static void Sua(int id, ChungLoai cl)
        {
            var db = new SmartShopConnectionDB();

            db.Update("ChungLoai", "MaCL", cl);
        }