partial void DeleteRegistration(Registration instance);
		private void detach_Registrations(Registration entity)
		{
			this.SendPropertyChanging();
			entity.EventRegType = null;
		}
 partial void InsertRegistration(Registration instance);
 partial void UpdateRegistration(Registration instance);
		private void attach_Registrations(Registration entity)
		{
			this.SendPropertyChanging();
			entity.Attendee = this;
		}
		private void detach_Registrations(Registration entity)
		{
			this.SendPropertyChanging();
			entity.DiscountRule = null;
		}
		private void detach_Registrations1(Registration entity)
		{
			this.SendPropertyChanging();
			entity.Registration2 = null;
		}
        private int FetchGroupPrimary(int rowIndex)
        {
            int regId = GetAttendeeId(rowIndex);//register id
            //S.RegistrationsService svcRegs = new S.RegistrationsService();
            //E.Registrations r = svcRegs.GetByRegisterId(regId);
            Registration reg = new Registration();

            ClientDataContext db = new ClientDataContext();
            reg = (from r in db.Registrations where r.Register_Id == regId select r).Single();

            return reg.GroupId;
        }
        public string GetRegistrationEmail(Registration reg)
        {
            string email = null;

            ClientDataContext db = new ClientDataContext(ConfigReader.DefaultProvider.EnvironmentConfiguration.ClientDbConnection);
            var attendee = (from a in db.Attendees where a.Id == reg.Attendee_Id select a).Single();
            email = attendee.Email_Address;

            return email;
        }