public static IEnumerable <LoaiSanPham> DanhSach()
        {
            var db = new CellPhoneConnectionDB();

            return(db.Query <LoaiSanPham>("select * from LoaiSanPham"));
        }
Beispiel #2
0
        public static IEnumerable <SanPham> ChiTIet(int id_NhaSanXuat)
        {
            var db = new CellPhoneConnectionDB();

            return(db.Query <SanPham>("select * from SanPham where a_HangSanXuat = " + id_NhaSanXuat));
        }
Beispiel #3
0
        public static SanPham ChiTiet(int id)
        {
            var db = new CellPhoneConnectionDB();

            return(db.SingleOrDefault <SanPham>("select * from SanPham where a_ID = @0", id));
        }
Beispiel #4
0
        public static IEnumerable <NhaSanXuat> DanhSach()
        {
            var db = new CellPhoneConnectionDB();

            return(db.Query <NhaSanXuat>("select * from NhaSanXuat"));
        }