private void detach_UserProfileToApplicants(UserProfileToApplicant entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
		private void attach_UserProfileToApplicants(UserProfileToApplicant entity)
		{
			this.SendPropertyChanging();
			entity.UserProfile = this;
		}
 partial void DeleteUserProfileToApplicant(UserProfileToApplicant instance);
 partial void UpdateUserProfileToApplicant(UserProfileToApplicant instance);
 partial void InsertUserProfileToApplicant(UserProfileToApplicant instance);
        public bool CreateUserProfileToApplicant(UserProfileToApplicantDAO s)
        {
            UserProfileToApplicant userProfileToApplicant = new UserProfileToApplicant
            {
                UserProfileToApplicant_ID = s.UserProfileToApplicant_ID,
                Applicant_ID = s.Applicant_ID,
                UserId = s.UserId
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.UserProfileToApplicants.InsertOnSubmit(userProfileToApplicant);

                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }