public int CreateDeal(Deal deal)
        {
            DataContext.Deals.InsertOnSubmit(deal);
            DataContext.SubmitChanges();

            return deal.DealId;
        }
		private void detach_Deals(Deal entity)
		{
			this.SendPropertyChanging();
			entity.Branch = null;
		}
		private void attach_Deals(Deal entity)
		{
			this.SendPropertyChanging();
			entity.Branch = this;
		}
 partial void DeleteDeal(Deal instance);
 partial void UpdateDeal(Deal instance);
 partial void InsertDeal(Deal instance);