示例#1
0
        public static IEnumerable <NHASANXUAT> DanhSachAdmin()
        {
            var db = new MiniShopConnectionDB();

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

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

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

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

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

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

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

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