public bool SelectAll() { GoodsInterface gf = dg.CreateGoods(); gf.Select(); return(dg.SaveChange()); }
public bool Delete(Goods g) { GoodsInterface ti = dg.CreateGoods(); ti.Del(g); return(dg.SaveChange()); }
public bool Add(Goods g) { GoodsInterface ti = dg.CreateGoods(); ti.Add(g); return(dg.SaveChange()); }
public List <Goods> SelectBys(int id) { GoodsInterface gf = dg.CreateGoods(); return(gf.SelectBy(e => e.TypeID == id)); }
public List <Goods> SelectBy(int id) { GoodsInterface ti = dg.CreateGoods(); return(ti.SelectBy(e => e.GoodsID == id)); }
public List <Goods> select() { GoodsInterface ti = dg.CreateGoods(); return(ti.Select()); }
//点击Shop查看这个商品的详细信息 public List <Goods> SelectByDescripy(int id) { GoodsInterface gf = dg.CreateGoods(); return(gf.SelectBy(e => e.GoodsID == id)); }