Esempio n. 1
0
        public static SANPHAM ChiTiet(String a)
        {
            var db = new MiniShopConnectionDB();

            return(db.SingleOrDefault <SANPHAM>("select * from SANPHAM where MaSanPham = @0", a));
        }
Esempio n. 2
0
        public static NHASANXUAT ChiTietAdmin(String id)
        {
            var db = new MiniShopConnectionDB();

            return(db.SingleOrDefault <NHASANXUAT>("select * from NHASANXUAT where MaNhaSanXuat = '" + id + "'"));
        }
Esempio n. 3
0
        public static LOAISANPHAM ChiTietLoaiSanPhamAdmin(String id)
        {
            var db = new MiniShopConnectionDB();

            return(db.SingleOrDefault <LOAISANPHAM>("select * from LOAISANPHAM where MaLoaiSanPham = '" + id + "'"));
        }