Esempio n. 1
0
		private void detach_UserProfileToApplicants(UserProfileToApplicant entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
Esempio n. 2
0
		private void attach_UserProfileToApplicants(UserProfileToApplicant entity)
		{
			this.SendPropertyChanging();
			entity.UserProfile = this;
		}
Esempio n. 3
0
 partial void DeleteUserProfileToApplicant(UserProfileToApplicant instance);
Esempio n. 4
0
 partial void UpdateUserProfileToApplicant(UserProfileToApplicant instance);
Esempio n. 5
0
 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;
        }