private void detach_JobOpeningInterviewQuestions(JobOpeningInterviewQuestion entity) { this.SendPropertyChanging(); entity.SAQuestion = null; }
private void attach_JobOpeningInterviewQuestions(JobOpeningInterviewQuestion entity) { this.SendPropertyChanging(); entity.JobOpening = this; }
partial void InsertJobOpeningInterviewQuestion(JobOpeningInterviewQuestion instance);
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; }