public void RemoveGoods(Goods goods) { db.Goods.Remove(goods); db.SaveChanges(); }
//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(); }
public void RemoveGoodsK(GoodsK goodsk) { db.GoodsK.Remove(goodsk); db.SaveChanges(); }
public void UpdateShopcarCount(ShopCar shopCar) { db.Entry(shopCar).State = EntityState.Modified; db.SaveChanges(); }
public void AddUserInfo(UserInfo userInfo) { db.UserInfo.Add(userInfo); db.SaveChanges(); }
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(); }