Esempio n. 1
0
		private void detach_Interviews(Interview entity)
		{
			this.SendPropertyChanging();
			entity.SAResponse = null;
		}
Esempio n. 2
0
		private void detach_Interviews(Interview entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
Esempio n. 3
0
		private void detach_Interviews(Interview entity)
		{
			this.SendPropertyChanging();
			entity.SAQuestion = null;
		}
Esempio n. 4
0
 partial void DeleteInterview(Interview instance);
Esempio n. 5
0
 partial void UpdateInterview(Interview instance);
Esempio n. 6
0
 partial void InsertInterview(Interview instance);
        public bool CreateInterview(InterviewDAO s)
        {
            Interview interview = new Interview
            {
                Interview_ID = s.InterviewID,
                Applicant_ID = s.ApplicantID,
                SAQuestion_ID = s.SAQuestionID,
                SAResponse_ID = s.SAResponseID
                //UserID = s.UserID
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.Interviews.InsertOnSubmit(interview);

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

            return true;
        }