public bool ShoppingCartItemDelete(ShoppingCartItem shoppingcartitem)
        {
            return Execute<bool>(dal =>
            {
                ShoppingCartItem shoppingcartitemDelete = dal.ShoppingCartItem.Where(x => x.ShoppingCartItemID == shoppingcartitem.ShoppingCartItemID).FirstOrDefault();
                if (shoppingcartitemDelete != null)
                {
                    dal.ShoppingCartItem.DeleteOnSubmit(shoppingcartitemDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
        public bool ShoppingCartItemUpdate(ShoppingCartItem shoppingcartitem)
        {
            return Execute<bool>(dal =>
               {
               ShoppingCartItem shoppingcartitemUpdate = dal.ShoppingCartItem.Where(x => x.ShoppingCartItemID == shoppingcartitem.ShoppingCartItemID).FirstOrDefault();
               if (shoppingcartitemUpdate != null)
               {
                   shoppingcartitemUpdate.ShoppingCartItemID = shoppingcartitem.ShoppingCartItemID;
                   shoppingcartitemUpdate.ShoppingCartID = shoppingcartitem.ShoppingCartID;
                   shoppingcartitemUpdate.Quantity = shoppingcartitem.Quantity;
                   shoppingcartitemUpdate.ProductID = shoppingcartitem.ProductID;
                   shoppingcartitemUpdate.DateCreated = shoppingcartitem.DateCreated;
                   shoppingcartitemUpdate.ModifiedDate = shoppingcartitem.ModifiedDate;

                   dal.SubmitChanges();
                   return true;
               }
               return false;

               });
        }
 partial void DeleteShoppingCartItem(ShoppingCartItem instance);
 partial void UpdateShoppingCartItem(ShoppingCartItem instance);
 partial void InsertShoppingCartItem(ShoppingCartItem instance);
		private void detach_ShoppingCartItems(ShoppingCartItem entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
 public void ShoppingCartItemUpdate(ShoppingCartItem shoppingcartitem)
 {
     adventureWorks_BC.ShoppingCartItemUpdate(shoppingcartitem);
 }
 public void ShoppingCartItemAdd(ShoppingCartItem shoppingcartitem)
 {
     adventureWorks_BC.ShoppingCartItemAdd(shoppingcartitem);
 }