private void detach_shoppingCarts(shoppingCart entity)
		{
			this.SendPropertyChanging();
			entity.application = null;
		}
        protected void RadButtonSelection_Click(object sender, EventArgs e)
        {
            if (RadGridItemOverview.SelectedItems.Count != 0) // no check boxes selected
              {
            List<int> rowIndexes = new List<int>();

            if (radGridCheckBoxSellectAllChecked) // all check box selected
            {

            }
            else // some check boxes selected
            {
              Guid membershipUserId = new Guid(Membership.GetUser().ProviderUserKey.ToString());

              GridItemCollection gridItemCollection = RadGridItemOverview.SelectedItems;

              shoppingCart sc;

              foreach (GridDataItem data in gridItemCollection)
              {
            if (portalDc.shoppingCarts.Where(s => s.itemId == Convert.ToInt32(data.GetDataKeyValue("itemId"))
              && s.companyCode.Equals(data.GetDataKeyValue("companyCode").ToString())
              && s.userId.Equals(membershipUserId)
              && s.applicationCode.Equals("ESM")).IsNullOrEmpty())
            {
              sc = new shoppingCart
              {
                itemId = Convert.ToInt32(data.GetDataKeyValue("itemId")),
                companyCode = data.GetDataKeyValue("companyCode").ToString(),
                userId = membershipUserId,
                applicationCode = "ESM"
              };

              portalDc.shoppingCarts.InsertOnSubmit(sc);
            }
              }
            }

            // Submit the change to the database.
            try
            {
              portalDc.SubmitChanges();
            }
            catch (Exception exception)
            {
              //
            }
              }
              else
              {
            // literal
              }
        }
		private void detach_shoppingCarts(shoppingCart entity)
		{
			this.SendPropertyChanging();
			entity.company = null;
		}
		private void attach_shoppingCarts(shoppingCart entity)
		{
			this.SendPropertyChanging();
			entity.item = this;
		}
 partial void DeleteshoppingCart(shoppingCart instance);
 partial void UpdateshoppingCart(shoppingCart instance);
 partial void InsertshoppingCart(shoppingCart instance);