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