Beispiel #1
0
        public bool SelectAll()
        {
            GoodsInterface gf = dg.CreateGoods();

            gf.Select();
            return(dg.SaveChange());
        }
Beispiel #2
0
        public bool Delete(Goods g)
        {
            GoodsInterface ti = dg.CreateGoods();

            ti.Del(g);
            return(dg.SaveChange());
        }
Beispiel #3
0
        public bool Add(Goods g)
        {
            GoodsInterface ti = dg.CreateGoods();

            ti.Add(g);
            return(dg.SaveChange());
        }
Beispiel #4
0
        public List <Goods> SelectBys(int id)
        {
            GoodsInterface gf = dg.CreateGoods();

            return(gf.SelectBy(e => e.TypeID == id));
        }
Beispiel #5
0
        public List <Goods> SelectBy(int id)
        {
            GoodsInterface ti = dg.CreateGoods();

            return(ti.SelectBy(e => e.GoodsID == id));
        }
Beispiel #6
0
        public List <Goods> select()
        {
            GoodsInterface ti = dg.CreateGoods();

            return(ti.Select());
        }
Beispiel #7
0
        //点击Shop查看这个商品的详细信息
        public List <Goods> SelectByDescripy(int id)
        {
            GoodsInterface gf = dg.CreateGoods();

            return(gf.SelectBy(e => e.GoodsID == id));
        }