Esempio n. 1
0
        public static IEnumerable <NHASANXUAT> DanhSachAdmin()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <NHASANXUAT>("select * from NHASANXUAT "));
        }
Esempio n. 2
0
        public static IEnumerable <NHASANXUAT> DanhSach()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <NHASANXUAT>("select * from NHASANXUAT where TinhTrang = 0"));
        }
Esempio n. 3
0
        public static IEnumerable <SANPHAM> ChiTiet(String id)
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <SANPHAM>("select * from SANPHAM where MaNhaSanXuat = '" + id + "'"));
        }
Esempio n. 4
0
        //------------------------------------------------------------------
        public static IEnumerable <SANPHAM> DanhSachSP()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <SANPHAM>("select * from SANPHAM"));
        }
Esempio n. 5
0
        public static IEnumerable <SANPHAM> Top4Hot()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <SANPHAM>("select Top 4 * from SANPHAM where LuotView > 0"));
        }
Esempio n. 6
0
        public static IEnumerable <SANPHAM> Top4()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <SANPHAM>("select Top 4 * from SANPHAM where GhiChu = N'New'"));
        }
Esempio n. 7
0
        //--------------------------------------------------
        public static IEnumerable <LOAISANPHAM> LoaiSanPhamAdmin()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <LOAISANPHAM>("select * from LOAISANPHAM"));
        }
Esempio n. 8
0
        public static IEnumerable <LOAISANPHAM> DanhSach()
        {
            var db = new MiniShopConnectionDB();

            return(db.Query <LOAISANPHAM>("select * from LOAISANPHAM where TinhTrang = 0"));
        }