Esempio n. 1
0
		private void detach_Assessments(Assessment entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}
Esempio n. 2
0
		private void detach_Assessments(Assessment entity)
		{
			this.SendPropertyChanging();
			entity.QuestionBank = null;
		}
Esempio n. 3
0
 partial void DeleteAssessment(Assessment instance);
Esempio n. 4
0
 partial void UpdateAssessment(Assessment instance);
Esempio n. 5
0
 partial void InsertAssessment(Assessment instance);
        public bool CreateAssessment(AssessmentDAO s)
        {
            Assessment assessment = new Assessment
            {
                Assessment_ID = s.AssessmentID,
                Applicant_ID = s.ApplicantID,
                QuestionBank_ID = s.QuestionBankID
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.Assessments.InsertOnSubmit(assessment);

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

            return true;
        }