Esempio n. 1
0
		private void detach_JobOpeningInterviewQuestions(JobOpeningInterviewQuestion entity)
		{
			this.SendPropertyChanging();
			entity.SAQuestion = null;
		}
Esempio n. 2
0
		private void attach_JobOpeningInterviewQuestions(JobOpeningInterviewQuestion entity)
		{
			this.SendPropertyChanging();
			entity.JobOpening = this;
		}
Esempio n. 3
0
 partial void InsertJobOpeningInterviewQuestion(JobOpeningInterviewQuestion instance);
Esempio n. 4
0
 partial void DeleteJobOpeningInterviewQuestion(JobOpeningInterviewQuestion instance);
        public bool CreateJobOpeningInterviewQuestion(JobOpeningInterviewQuestionDAO s)
        {
            JobOpeningInterviewQuestion jobOpeningInterviewQuestion = new JobOpeningInterviewQuestion
            {
                JobOpeningInterviewQuestion_ID = s.JobOpeningInterviewQuestionID,
                JobOpening_ID = s.JobOpeningID,
                SAQuestion_ID = s.SAQuestionID
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.JobOpeningInterviewQuestions.InsertOnSubmit(jobOpeningInterviewQuestion);

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

            return true;
        }