Example #1
0
 public void RemoveGoods(Goods goods)
 {
     db.Goods.Remove(goods);
     db.SaveChanges();
 }
Example #2
0
 //public IQueryable<View_OrderDetails> FindviewodById(string uid)
 //{
 //    var viewordersd = db.View_OrderDetails.Where(c => c.Users_id == uid);
 //    return viewordersd;
 //}
 public void RemoveOrdersDetails(OrdersDetails ordersd)
 {
     db.OrdersDetails.Remove(ordersd);
     db.SaveChanges();
 }
Example #3
0
 public void RemoveGoodsK(GoodsK goodsk)
 {
     db.GoodsK.Remove(goodsk);
     db.SaveChanges();
 }
Example #4
0
 public void UpdateShopcarCount(ShopCar shopCar)
 {
     db.Entry(shopCar).State = EntityState.Modified;
     db.SaveChanges();
 }
Example #5
0
 public void AddUserInfo(UserInfo userInfo)
 {
     db.UserInfo.Add(userInfo);
     db.SaveChanges();
 }
Example #6
0
        public void Goumai(string uid, string uname, string userphone, string address, string note)
        {
            int i = db.ShopCar_Orders(uid, uname, userphone, address, note);

            db.SaveChanges();
        }